Update Form1 from Form2
Posted on 2003-11-18
I am new to VB, and I'm using MS Visual Studio .NET. I have a project with 2 forms, form1 and form2. I am opening form2 from form1, so both forms are open. I am trying to update a list box on form1 by pressing a button on form2. I tried creating a variable of type form1, then updating the list box, but this doesn't seem to work:
tempvar As Form1
I also tried directly accessing the list box, just like this:
I thought about creating a new Form1 variable, but I need to keep the same Form1 I already have open, since I have already updated some things on there. Any help would be appreciated.