pass data between 2 forms but only show the form2 only from the start form

anin

Member
Joined
Feb 21, 2005
Messages
10
Programming Experience
1-3
I did go through the earlier forms regarding passing data between 2 forms and it works great for me.

But my probs is that I have 3 forms - start form, form1, form2

start form has 2 buttons to show form1 and form2

I want to create a reference to pass data between the form1 and form2 but I dont want to show the form2 from form1 but to show only when I click the button from the start form.

thanks.:confused:
 
You have to make your variables public and shared:

on form 1:
Public shared imglobal as string


Then to call it on form 2: form1.imglobal

(of course you can change the variable name.)
 
is it possible to pass data from a custom user control in a form to another custom user control in another similar form ?
 
Back
Top