andycharger Posted August 4, 2004 Posted August 4, 2004 I need to pass a variable from one form to another. So when I do frm2.Show() frm1.Close() It opens a new form. However, I thought I could pass my variable from frm1 by doing this: frm2.Show(strValue1,strValue2) frm1.close But it wont let me. How can I pass the values? Using strNewValue = frm1.strValue is not acceptible because frm2 will need to be accessed from more than one form so I cant ask for frm1.strValue if, say frm3 is passing the string. Any ideas how I pass values from one form to another? Quote
Administrators PlausiblyDamp Posted August 4, 2004 Administrators Posted August 4, 2004 Clicky little tutorial on these kind of things from our very own Bucky. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
andycharger Posted August 4, 2004 Author Posted August 4, 2004 Cheers as always Plausibly! If there is a problem, I can count on you to fix! However, I had cracked it myself and was just writing a post to say I had solved it. 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.