Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Please Help I'm still learning

 

how dose one pass variables from one form to anyother form in .net . I can't find a good way to do this. if someone can send a simple way or sample code it would be most welcome.

 

thanks very much

Posted

u can also use the shared method provided in .net

for example:

 

form1.vb

-----------

'declare the variable in

public shared variablename as string

 

'assign value to the variablename

 

 

form2.vb

------------

when u open this form and want to retrieve the variable value previously assign in form1 then try this out

 

dim f as form1

textbox1.text = f.variablename

' u should be able see the variablename when u try to access property in f

 

regards,

kengwoh

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...