In the General Declarations of Form B, you can declare a Public variable (eg Public MyVar as string).
In your double-click event of the listbox, have something like this:
Load FormB
FormB.MyVar = Listbox1.Text '//or whatever property you want to use
FormB.Show vbmodal '//or remove the vbmodal...
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.