Passing value to another form

  • Thread starter Thread starter Nwulf
  • Start date Start date
N

Nwulf

Guest
I am very new at the VB .Net...Came from programming in Access 97.

I have a MainMenu form with button captions that will change, depending on data in a table. What I want to do is when a button is pressed on the main menu, I want to pass the caption of the button to another form, which names a certain label box.

LOL...I just found out how to open another form from a form (another post I read), but would like to somehow transfer data to form 2.

Any suggestions?

Nick
 
There are a *lot* of threads in this forum answering exactly that question. At least 1 in 10, probably more :)

Try to remember that forms are just classes, and to change something on a class you need a reference to it. Just using the name of the form won't work because you need an instance.
 
Back
Top