467 Posted Topics
Re: Your problem is in **Private fmtString As String = "{0,-50},{2,8},{3,8},{4,8},{5,8}"**. It should be Private fmtString As String = "{0,-50},{1,8},{2,8},{3,8},{4,8}" Hope it can help you. | |
Re: Yes ! **dgv.selectionchanged** is the correct event you selected. You did right, but you didn't check the conditions for dgv.SelectedRows.Count. The codes should be Private Sub DGV_SelectionChanged(sender As Object, e As System.EventArgs) Handles DGV.SelectionChanged If DGV.SelectedRows.Count > 0 Then Action_Button.Enabled = True Else Action_Button.Enabled = False End If End Sub … | |
Re: Follow this [tutorial](https://www.daniweb.com/software-development/vbnet/code/444231/printing-text-with-word-wrap) in vb.net forum of Daniweb, which can give you a proper way of thinking. | |
Re: You can use a flag for Booking/Non-booking, like True/False. Make your querry on that flag. | |
Re: Hi Don, Are the digits unique for each folder name? If there is an only one folder that you mension **1504 - FPbs Meriden**, no other folder is there which uses **1504** like **1504 - XXXXXXXX**, you can do it for that particular folder. If you have another one which … | |
Re: I am an Indian. My mother tongue is Bengali. But I can speak and understand several Indian languages, like Hindi, Telegu, Marathi, Oria. In middle of my school life I learned Sanskrit. One of the ancient language in world. Every indian languages are derived from Sanskrit. Now for my job … ![]() | |
Re: Yes you can change New Power value after changing Old Power Value programmatically. To change of a cell value on changing of other cell value you must use **DataGridView CellEndEdit or CellValueChanged** event. To change cell value the codes are Private Sub DataGridView1_CellEndEdit(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit … | |
Re: Your problem is in construction of For Loop. Removing Loops must be ran from highest listitem count to lowest by steping -1. Whatever may be the object is a ListBox, ComboBox, DataGridView or ListView. Always remember that, in for loop the upper limits must be fixed. You can not change … | |
Re: I have seen your entire codifications, it is a long code blocks. It is most time consumeable work to give any perfect suggession. But, from my point of view you need to use some object variabls, some loops to complete your lengthy simple codes withen some code lines(like the code … | |
Re: This ia an old thread. Please, make a new thread for your question. | |
Re: Referrencing from then link [you posted](https://www.daniweb.com/software-development/vbnet/threads/489626/remove-end-of-report-line-and-format-unix-text), you can do it as you did to insert each and every line to the text file. Place the codes to insert your characters at the end. For i As Integer = readtxt.GetLowerBound(0) To readtxt.GetUpperBound(0) - 2 'Appending the line to the text file … | |
Re: Don't copy paste from others, only read and try to realize what he/she wants to do and grow a conception about that matter in yourself. Well, as you say you are a bigginer in vb.net, so I just want to point out the wrongs in your posting. 1) In SQL … | |
Re: Using Object Type variable you can do this dynamically. Please [read this](https://www.daniweb.com/software-development/vbnet/threads/485768/retrieving-all-tables-in-ms-access#post2125438), which can give you a way to solve your problem. Thanx. | |
Re: From my opinion, **MaskedTextBox** control should give you more flexibility to input the time values like start time and end time. Take two MaskedTextBox controls, one for start time and second one for present/end time. In property window change two properties of each MaskedTextBox control. **Changable Property Values** 1) Set … | |
Re: In vb6 to call a sub procedure no need parenthesis. simply call it as Call ProcedureName Param1, Param2, Param3 It can help you. | |
Re: Hi, I do not know your database structure and you did not describe it. From the previous experiance I can say you that go through the purchased products table searching by ProductID and BatchNo and check the condition on BatchExpDate for expiary. Hope it can give you a way. | |
| |
Re: > Me.DataGridView1.Rows.Add(...) To access an object of a Form from another, you must call the Form Name first i.e. **<FormName>.<ObjectName>.<PropertyName>=<Value>**. So your syntax should be`<YourFormName>.DataGridView1.Rows.Add(...)`. | |
Re: You can use PrintDocument to make yur report, as per your requirments and print. | |
Re: How far am I right, you are using a Typed Datasource to search the newest entry you did. Opened datasource never read the newly inserted or updated data. To do you must close and re-open the datasource. From my point of view use untyped Datasource to search as you did … | |
Re: Yes,You can do this after necessary changes in the row. just store the CurrentRowIndex value of the selected datagridview row then in button click event after saving the data to the database you can change the color of that row. Declare a formlaval variable ro hold the datagridview selected row … | |
Re: There are many discussions about this matter. Please, Read them. [https://www.daniweb.com/software-development/vbnet/threads/473687/vb-net-sms-application](https://www.daniweb.com/software-development/vbnet/threads/473687/vb-net-sms-application) [https://www.daniweb.com/software-development/vbnet/threads/472982/can-i-send-sms-from-vb-net-with-zte-usb-modem](https://www.daniweb.com/software-development/vbnet/threads/472982/can-i-send-sms-from-vb-net-with-zte-usb-modem) | |
Re: There should be an option to edit item(s). | |
Hello members, Presently I do my projects with vb.net. I am not familier with Python. I want to learn python. Would you help me to learn python? I know nothing about python and I donot understand where from I will start. | |
What is difference between MySQl & MSSQL database storage limitation. More descriptively, If I make databases using the above-mentioned database systems. How much data I can store in each of them, i.e. 1GB, 2GB, 10GB, 100Gb. What is the limitation? | |
Re: > i used ms access For Access just copy and paste your database to your destination folder by using FileSystemObject programmatically. If you use MSSQL or MySQL you must make a procedure to get a backup of your database. | |
Re: From my opinion there is a problem in construction of connection string. Please see here.[http://www.connectionstrings.com/mysql/](http://www.connectionstrings.com/mysql/) | |
Re: MS SQlSERVER creates two files, .mdf and .log. So if you want to attach your datafile in your package, you must select that two files. At the time of installation, the package only copies the files at their destination. You can face a problem to open the database by SqlServer. … | |
Re: You can use registry or database or an xml file. ![]() | |
Re: oussama_1 is right. Take a label control to display the string or working percentage and take a progress bar to visualize the working percentage. Aalabel control has Text Property to display any text. But you must set 3 to 4 properties of a progressbar to get the proper visualization. **ProgressBar … ![]() | |
Re: Welcome sumas. Members are here not to do your home work they are to help you. Please post your codes how far you did. | |
Re: Make sure path of the datasource at design time and after installation of your application. It is must to maintain the equal path at design time and after installation. In deployment wizard set the path where your database will reside. You can set it for every added files. | |
Re: It is possible to create your database into **"C:\ProgramData"**. To do this you must check the radiobutton **Show hidden files, folder, and drives** in the **View Tab** of Folder Options window. You can transfer anyfile to C:\ProgramData folder. | |
Re: > Dim sql = "SELECT * FROM TBLORDERS WHERE nod='" & lvorder.Items(0).SubItems(1).Text & "'" >Dim cmd = New OleDbCommand(sql, con) >Dim dr As OleDbDataReader = cmd.ExecuteReader Why are you using these lines? And your thinkig is in wrong direction. Go through the Items of the ListView. Every time check if … | |
Re: What do you mean by **change Conection String** ? Please describe it. If you have some codes please post them. | |
Re: It should be Dim SQL As String = "SELECT ('RQ' & Format(MAX(ID),000)) FROM ReqItemList WHERE ReqItem ='" & inputin & "'" | |
Re: @jez9: Lot of thanks for your try to help others. But made some mistake at the bottom, where you tried to insert a new row into the table. You could never open same Command object twice for different work. You need some modification in your codes. Here you have shown … | |
Re: When cnt=20, clicking Button1 you can face an exception, because the upper bound of the array is 19. So you can disable the button1 or use a checking a condition for cnt=20 to prevent extra input. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click if cnt<=19 … | |
Re: In mathematics Factorial of x=x * (x-1) * (x-2) * (x-3)................(x-(x-2)) * (x-(x-1)) If x=3 the Factorial of 3=3 * (3-1) * (3-2)=3 * 2 * 1=6 You can represent it by any one Symbols of L or !. So, 3!=3 * 2 * 1=6 | |
Re: > i should get happygeek to put you's two idiots of the month What's your voice @happygeek. As a member doesn't expect this type of word. | |
Re: From my opinion your SQL Statement should be SqlTimes.UpdateCommand = "UPDATE Members SET [Agegrade]='" & savetim1 & "' where [Fullname]='" & athletename & "'" | |
Re: From my opinion, use ListView HitTest() method to get the information at the position on which item you downed your mouse or outside the label area.. | |
Re: Please post your codes, how far you did. | |
Re: These type of error could be shown if you try to paste codes in the Form Class copying from other form class without designing first. | |
Re: Please [read](https://www.daniweb.com/software-development/vbnet/threads/485201/dataset-contents-not-displayed-on-printpreview-on-second-click#post2123707) this post carefully. You can get more resources from here about printing in tabuler format. | |
Re: take the array you declared i.e **IntArr()** as a dynamic array and do you jobs. The codes are as like 'declare the variables Dim IntArr() As String Dim i As Integer = 0 'Redimentioning the array ReDim IntArr(i) For Each tb As Control In Me.Controls If TypeOf tb Is TextBox … | |
Re: Firstly, the syntax at line 2 & 3 are wrong. It synax would be For lngIndex2 = 0 To ListView1.ListItems.Count-1 lngTot2 = lngTot2 + Val(ListView1.Items(lngIndex2).SubItems(5).Text) Next More consizely, it should be For lngIndex2 = 0 To ListView1.ListItems.Count-1 lngTot2 += Val(ListView1.Items(lngIndex2).SubItems(5).Text) Next To show your result the code is Text10.Text = … | |
Re: PictureBox is the Parent Control of the Label, So I think that no need to use the methods **PictureBox1.SendToBack()** and **.BringToFront()**. Remove them. Your problem is in calculation of the location of the label. Simply store the location in a point variable. If you want to display at same position … | |
Re: Post your work, how far you have done. | |
Re: > If idno.Text = "" Or proflname.Text = "" Or proffname.Text = "" Or _ > profmi.Text = "" Or subcode.Text = "" Or teachuser.Text = "" Or teachpass.Text = "" Then Why did you want with that blank Condition chacking? There is no codes to execute after satisfying these … |
The End.