Have have a listbox in my main form. I need to transfer that data to another form to use in a SQL command. I'm not sure how to go about doing this. Is a data table to most efficient way?
Right now I have code that transfers my main listbox data on form1 to another listbox on form2 - which works fine. The problem is the user doesn't need a listbox on form2.
Any help would greatly appreciated.Code:For i As Integer = 0 To Form1.ProductListBox.Items.Count - 1 Me.ListBox1.Items.Add(CStr(Form1.ProductListBox.Items(i).Item(0))) Next




Reply With Quote