nd54 Posted June 21, 2003 Posted June 21, 2003 hello all I am trying to set a textbox text so when I click a button it sets the text on that form into the textbox on another form here is what I got dim F3 as new form3 f3.textbox1.text = textbox1.text when I click the button it doesnt add the textbox to the form3 textbox what am i doing wrong Quote
Administrators PlausiblyDamp Posted June 21, 2003 Administrators Posted June 21, 2003 in form3 textbox one needs to be declared as public. Or preferably ad a property procedure to form3 for access to the textbox contents. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* mutant Posted June 21, 2003 *Experts* Posted June 21, 2003 The easiest and probably the best way would be to pass your form's instance in a constructor. Then you can manipulate the form and its controls. Quote
wyrd Posted June 22, 2003 Posted June 22, 2003 Read this thread for various solutions; http://www.xtremedotnettalk.com/showthread.php?s=&threadid=73157&highlight=another+form Quote Gamer extraordinaire. Programmer wannabe.
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.