Hey all.
I'm very new to VB.net, and the way everything works. I have a very simple question, so here goes.
I have a simple application that has 2 forms. On the first form the user inputs 2 numbers. I then pass those 2 numbers to the second form, and do some calculations and out put that data.
I have the code that does the calculations in the form load section on the second form. The user can then hit a button to take them back to the first form.
I am using
form1.visible = true
me.visible = false
to achieve that.
The program works just fine the first time because form2 loads when I set it to visible the first time, but the second time it doesn't work. I assume that is because form2 has already been loaded, and I am not unloading it by setting the visible property to false.
So here is my question. How do I unload the form so that the second time a user runs my program, the form load code executes?
Thanks for any help!
I'm very new to VB.net, and the way everything works. I have a very simple question, so here goes.
I have a simple application that has 2 forms. On the first form the user inputs 2 numbers. I then pass those 2 numbers to the second form, and do some calculations and out put that data.
I have the code that does the calculations in the form load section on the second form. The user can then hit a button to take them back to the first form.
I am using
form1.visible = true
me.visible = false
to achieve that.
The program works just fine the first time because form2 loads when I set it to visible the first time, but the second time it doesn't work. I assume that is because form2 has already been loaded, and I am not unloading it by setting the visible property to false.
So here is my question. How do I unload the form so that the second time a user runs my program, the form load code executes?
Thanks for any help!