nicedeath99 Posted February 7, 2004 Posted February 7, 2004 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 Quote
Administrators PlausiblyDamp Posted February 7, 2004 Administrators Posted February 7, 2004 find two quick ways attached. One overloads the form's sub new (see form2) one uses a property (see form3)forms.zip Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kengwoh Posted February 8, 2004 Posted February 8, 2004 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.