Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm new to forms and this is a simple question.

In form 1 i call form two like this

 

Dim Form2 As New SecondForm

 

Now how do I pass a value into Form2 that i set in form 1? Thanks

  • Moderators
Posted

You can overload the constructor of form 2 and pass them during decalration...

 

Dim Form2 As New SecondForm ( somearg1,somearg2)

 

Or you can create some properties in form 2, set their values while in form 1.

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...