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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.