467 Posted Topics

Member Avatar for TazaZaza

You can do it. How far have you gone? Please, post your codes. Collect the RowIndex from orderline form DataGridView and nevigate to the Second Form Product DataGridView to pick the values from appropriate row matched by the eariler RowIndex.

Member Avatar for imti321
0
287
Member Avatar for PinoyDev

You can do it by retriving the listindex value of that particular text, which you tried to select by default. Make a function to get the SelectedIndex. It should be like Privat Function CheckIndex(ByVal key As String) As Integer Dim Result As Integer = -1 For i As Integer = …

Member Avatar for PinoyDev
0
385
Member Avatar for Papa_Don

At the time of creating your project define the location of your project in New Project Window. If you check the **create Directory for Solution**, it automatically creates a folder at the location of your project. the name would be as same as solution name. I which your project should …

Member Avatar for imti321
0
330
Member Avatar for Papa_Don

You use here the **contains** method to detect the end line of the file. But it can remove all lines which contain the keyword **"End of Report"**. **For example:** suppose there is a line like **"The rules and regulations are described at the End of Report"** in the middle of …

Member Avatar for Papa_Don
0
754
Member Avatar for Lacrecen

You can do it. Your codes are quite correct. But, why are you going through a loop? It will slow down your process. Use **FindFirst** method to get quick result.

Member Avatar for Lacrecen
0
188
Member Avatar for Triple_7

> I want to accomplish this without using a combo box. @Triple_7 doesn't want to use combobox. It is in his posting.

Member Avatar for Santanu.Das
0
311
Member Avatar for Papa_Don

You can give your project a meaningfull name at the time when you have tried to create a New Project. you can also specify the location to save your project in your desired Drive and Subfolder. VB tries to create a folder of the name same as your project name …

Member Avatar for Nutster
0
1K
Member Avatar for AntonyRayan

The Sql Statement should be "select B.customer, P.name, B.quantity,B.total,B.discount,B.price from productmaster P INNER JOIN billing B on B.pid = P.id Order By P.id"

Member Avatar for Santanu.Das
0
143
Member Avatar for Papa_Don

@imti321: You have forgotten to pass argument value for **append As Boolean** in your last line > My.Computer.FileSystem.WriteAllText("C:\Restran Conversion\somefile.txt", "Some text") and it can raise an exception. The codes should be If Not System.IO.File.Exists("C:\Restran Conversion\somefile.txt") Then System.IO.File.Create("C:\Restran Conversion\somefile.txt") End If My.Computer.FileSystem.WriteAllText("C:\Restran Conversion\somefile.txt", "Some text", False) 2. At run time the …

Member Avatar for cgeier
0
432
Member Avatar for hell hansen

Connection string should be like "mysql:host = $this->db_host; dbname= $this->db_name; $this->user; $this->pass;");

Member Avatar for hell hansen
0
1K
Member Avatar for Nebil

How do we understand, where from does your exception come and why? Please post your codes and exception

Member Avatar for Nebil
0
122
Member Avatar for Lacrecen

You can do it by making a sub procedure. The code structure should be like Public sub ClearControls(ByVal FName as Form) 'Do your jobs here End Sub

Member Avatar for Lacrecen
0
3K
Member Avatar for Programmer592

Your problem is in this section. >'Scroll through all items in a listbox >Dim itemText As String = Lb.ToString 'Get item string >If itemText.Contains("C:\Users\David\Documents\My >Documents\Computer Programs\David\KOAGCS") Then 'Check to see if item has our >search var >open = 1 >End If >MsgBox(open) You must need some modification. It should be …

Member Avatar for Programmer592
0
327
Member Avatar for tinstaafl

2,260 Contributions (#82) Helped Solve 455 Q&As (#41) 96% Post Quality Score Total Up-Votes Received 384 Posts Receiving Up-Votes 357 Members Who've Up-Voted 203 Total Down-Votes Received 15 Posts Receiving Down-Votes 13 Members Who've Down-Voted 11 601 Reputation Points (#73) 38 Skill & Expertise Endorsements (#36) 16 VB.NET 10 C# …

Member Avatar for JorgeM
0
240
Member Avatar for waqasmrd

@waqasmrd: I like to tell that make your question on distinct problem, what you are facing to get your desred result. Post your codes, how far you did and what result you have got and what you have desired to get. There are too many process to make a query …

Member Avatar for Santanu.Das
0
127
Member Avatar for Jeon_1
Member Avatar for Santanu.Das
0
191
Member Avatar for OMER AHMED

Is there any `Add()` method to save data in settings? You can use the following. to save application settings values. My.Settings.MyAppUserName = TextBox1.Text My.Settings.Save() To retrieve TextBox1.Text = My.Settings.MyAppUserName

Member Avatar for Santanu.Das
0
1K
Member Avatar for coolsasuke

`Contains()` always returns boolean value. You an use it to match between two strings or to get an bolean value if a substring exists in a string or not. If it exists or match it returns True else False. You can not use it to compare between two numbers. @coolsasuke: …

Member Avatar for Santanu.Das
0
239
Member Avatar for Beta_1

> When I minimize the program while I've loaded this document, the program gets stuck and it takes quite a while atleast 1 minute(or more sometimes) to maximize back. From my point of view, this a threading problem. Here you are trying to open a text file. So do not …

Member Avatar for Beta_1
0
211
Member Avatar for PinoyDev

Store the checked items in an array. After changing the viewtype varify and check them programmatically. The codes should be like Dim x as Integer = 0 For litm As ListViewItem in ListView1.Items For i As Integer = x to UBound(LitmArray) If litm.Text = LitmArray(i) Then litm.Checked = True x …

Member Avatar for PinoyDev
0
183
Member Avatar for SunChild

Show your codes, how far you did. Create a DataConnection to the Excel file and use it as a Database.

Member Avatar for Santanu.Das
0
62
Member Avatar for Papa_Don

DO you have a limited numbers of IDNos? Like only Two Or Three IDNos. If you know you have only one, two or three,,,,,,,ten IDNos, You can do this by above processes by taking textboxes at designtime. But if you do not know how many IDNos you have? How do …

Member Avatar for Papa_Don
0
3K
Member Avatar for KyleScalise

From my ponit of view, the SQL Statement iswritten wrongly. > $query = "UPDATE users SET password='$securepw' WHERE username='$username'"; As per your statement **$securepw** and **$username** behave like a text not a variable. I suppose your statement should be $query = "UPDATE users SET password='" + $securepw + "' WHERE …

Member Avatar for Taywin
0
887
Member Avatar for msz900

Please try it Select A.Id, B.comment From Post A, (Select Image_Id, COUNT(Total_Comment) As comment From user_comment Group By Image_Id) B Where B.Image_Id = A.Id

Member Avatar for Santanu.Das
0
229
Member Avatar for sami12345

There is no distinct question. > Input Validation: Should be used on the test scores to assure they are valid. a negative number or character should not be accepted. only postive whole numbers less than or equal to 100 should be accepted. From the above lines, it can be assumed …

Member Avatar for Santanu.Das
0
187
Member Avatar for brillantesmarkharvey

Do your codes in **couesecombobox SelectedIndexChanged Event**. First Clear the items items from yearcombobox then add the items. Private Sub coursecombobox_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles coursecombobox.SelectedIndexChanged yearcombox.Items.Clear() yearcombox.Items.Add("1st Year") yearcombox.Items.Add("2nd Year") If Not coursecombobox.Items(coursecombobox.SelectedIndex) = "IT" Then yearcombox.Items.Add("3rd Year") yearcombox.Items.Add("4th Year") End If End Sub

Member Avatar for Santanu.Das
0
114
Member Avatar for dimitris.dimitri.73

Obviously, you can attach a Navigator bar for a MySql Database as you already created a bar for an Access database. Process is same. Only you mast load a **MySql Connector for vb** to access mysql database from vb. The type of database system is your choice. Do not understand …

Member Avatar for Santanu.Das
0
304
Member Avatar for OtepTheThird

Check the difference between the dates by using DateDiff() function. It should be like If dr.HasRows Then If DateDiff(DateInterval.Day, dr("due_date"), Now()) < 30 Then MsgBox("You have account already due") Else MsgBox("You dont have account due today") End If End If

Member Avatar for Santanu.Das
0
3K
Member Avatar for Doogledude123

You can do your loops like For i As Integer = 0 To 255 For j As Integer = 0 To 255 Dim pb As New PictureBox Dim loc As New Point Dim sz As New Size(1, 1) pb.Size = sz pb.BackColor = Color.FromArgb(j, i, layer) loc.X = j + …

Member Avatar for Richard Mon
0
153
Member Avatar for H

Take a Boolean varable before declaring the for loop. Your codes Should be like Dim array as Textbox() = {txt1, txt2, txt3} 'Array of textbox's Dim match As Boolean = False For loop = 0 to 3 If Array(Loop).text = Data_In_Database then 'Do something match = True Endif next If …

Member Avatar for Santanu.Das
0
175
Member Avatar for Qazi143

Please [read this](https://www.daniweb.com/software-development/vbnet/threads/487130/array-with-20-grades-that-shows-in-a-list-box#post2131293), hope you can get your answare from here

Member Avatar for imti321
0
190
Member Avatar for sourav1295

You can do it by using SQL Statement. Assume that you have two identical tables. To transfer One's data to another, the SQL statement is as follows Insert Into NewTableName Select * From OldTableName It can transfer all data from OldTable To NewTable.

Member Avatar for Santanu.Das
0
88
Member Avatar for OMER AHMED

This codes always run when the Application starts. You have to put the codes in MyApplication Class. You get this Class in ApplicationEvents.vb Class file. There is no need to use a Timer control. Goto Project Properties window -> Application Tab ->Select **Splash** in Splash Screen ComboBox. Now open ApplicationEvents.vb …

Member Avatar for Santanu.Das
0
393
Member Avatar for OMER AHMED
Member Avatar for Xiao_1
Member Avatar for Akhila_1

Develop your application by using WPF (Windows Presentation Foundation). Start vb.net -> New Project ->WPF Application.

Member Avatar for Minimalist
0
2K
Member Avatar for PinoyDev

Create the SQL Statement by concatinate the field names, which theuser selected. Dim xStr As String = "Select " For i As Integer = 0 To ListBox1.SelectedItems.Count - 1 xStr &= ListBox1.SelectedItems(i) If i < ListBox1.SelectedItems.Count - 1 Then xStr &= ", " End If Next xStr &= " From …

Member Avatar for Santanu.Das
0
151
Member Avatar for joshua_8

Why couldn't we use between keyword? Like, `where (table.date_field Between starting_date and CURDATE();`

Member Avatar for janissantony
0
148
Member Avatar for Xiao_1

Inspect the codes to locate where you write codes for showing the forms. The small window is a message box that you call for invalid text in the form info.

Member Avatar for Xiao_1
0
120
Member Avatar for altjen

What do you mean by > but want to make it to upload data online not to read them online I mean, you want to save data to the database, which resides at server, through TCP Port. **Begginnerdev**, tried to see how you could save data to your database. But, …

Member Avatar for Santanu.Das
0
9K
Member Avatar for Jeremybcent

In my opinion exception has been raised for shortage of "Space" in SQL Statement. It should be sql = "SELECT Chores.ChoresID, Chores.ChoresDate, Materials.MaterialName, Advisers.AdviserInit, Advisers.AdviserSurname, " _ & "Area.Area, Chores.StudentNo, Student.Forename " _ & "FROM Chores " _ & "INNER JOIN Materials on Materials.MaterialID = Chores.MaterialID " _ & "INNER …

Member Avatar for Jeremybcent
0
199
Member Avatar for Xiao_1

It should be like Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\Database1.accdb" If conn.State = ConnectionState.Open Then conn.Close() conn.Open() Dim sql As String = "Select [Project Name] As ProNm From tbl_assignment Where ProjectNo ='" & cbbproject.Items(cbbproject.SelectedIndex) & "'" Dim sqlCom As New System.Data.OleDb.OleDbCommand(sql, conn) sqlCom.Connection = conn Dim sqlReader …

Member Avatar for Santanu.Das
0
99
Member Avatar for Lacrecen

VB6 uses MsAccess 98 version. So, if your Access database version is above than 98, vb6 visual Data Maneger couldn't able to open it. From my point of view, using MsAccess is better way to design the database. You could not modify the data type of a field by VDM. …

Member Avatar for Lacrecen
0
255
Member Avatar for OMER AHMED

To search you can use **ListView1.Items.ContainsKey(key As String)** function.

Member Avatar for OMER AHMED
0
819
Member Avatar for bonzo2008

It should be Clipboard.SetDataObject(Image.FromFile("C:\PICTURE\1.jpg")) objWb.Worksheets("blad1").Range("A3").Select() objWb.Worksheets("blad1").PasteSpecial(Format:="Bitmap", Link:=False, DisplayAsIcon:=False) Suppose it can help you.

Member Avatar for bonzo2008
0
1K
Member Avatar for Akhila_1

> timer one to be switched on when the mouse hoves in that particular circle and turn off when it moves off Has there any HitTest method for a circle or arc drawn on a form or a picturebox, when the mouse hoverring on them? My opinion it may be …

Member Avatar for Akhila_1
0
449
Member Avatar for Xiao_1

Wrong SQL Statement and syntax for both operation For UpDate it should be Dim sql As String = "UPDATE tbl_datain SET UserName='" & txtname.Text & "' AdminNo ='" & txtadmin.Text & "' [Course Title] ='" & txtcourse.Text & "' [IC No] ='" & txtic.Text & "' Gender ='" & txtgender.Text …

Member Avatar for Santanu.Das
0
172
Member Avatar for Lacrecen

From myself, I will always coose ADODC Type object variable. Though an ADODC DataControl Object and an ADODC Object variable, both do their work same or less equal. In 1st case you never change the path of the Datasource programatically and also some times the recordset can initiate an error …

Member Avatar for Lacrecen
0
85
Member Avatar for metchoy tumanda
Member Avatar for Lacrecen

In table create a field for right answar. After chooeing option it will compare with the right answar. And if return value =True then score=1 else 0.

Member Avatar for Lacrecen
0
159

The End.