Forms activation code

  • Thread starter Thread starter boskomihic
  • Start date Start date
B

boskomihic

Guest
I have two questions about starting Form2 from Form1:
Visual Basic:
Dim frm As New Form2()
frm.Show()
1. When I run this code from Form1, VB.NET stops going trough code until I don’t close Form2. How can I make it, so code, from where I called Form2, continues with running?
2. How can I pass Variables from one form to other?
 
Maybe you could describe a little more of what's going on. I don't see a reason why your code you stop unless you showDialog(). As far as passing variables from one form to another, just remember forms are classes and you pass variables the same as you would with any other class. You'll need a reference from one to the other then create a property to set on the class.
 
Back
Top