0

VB2008.I have a form which has a textbox and a button on it. the button shows another form, which has a listbox bound to a datasource on it. When the user selects a list item, i have code that sets the value of the textbox on form 1 to the selected listbox value on form 2, which works fine. BUT? when i close form2? the value in the textbox on form 1 disappears. Is there something I'm missing?
Thanks,
Bill P.

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Bill Purkins
0

Well, I found a way around it, but I'm not sure it makes sense. Instead of closing form2 I hide it, and the value remains in the Form1 textbox field. Is this the way to do it? It doesn't seem that this should matter, or does VB initialize form variables on close?
Thanks,
Bill P.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.