i have a form ( form2) , which can be called by any other form. all other forms have a sub test. depending on which form has called form2 , sub test is executed ( the procedure of the calling form ).
the code below works fine in vb6 , but equivalent vb.net code got problems.
==============
Vb...
i want to add items in a listbox along with its corresponding id.my code :Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim obj As class1obj = New class1
obj.name = "xyz"
obj.id = 1
ListBox1.Items.Add(obj)
obj = New...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.