Hello everyone,
I have a simple problem and I believe that the solution is with module using but I could not resolve it yet. Here is the scene:
In Form1 I have a variant that gets its value from the selections of a listbox. The code is:
I would like to use the same variant (lstCOPtext) in Form2 because this selection from Listbox (in Form 1) should also trigger some events in Form 2. I tried to use a module and declare the variant using Public. I did this and I now can use the variant in Form 2. But the value selected in Form1 does not come to Form 2.Code:Dim lstcoptext As String = lstCOP.GetItemText(lstCOP.SelectedItem)
How can I do it?




Reply With Quote