Hello
I have a button and a text box. Why I can't access text box out of button_click method or other methods ?
Thanks :-
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Majid KamaliPosted Aug 16, 2010, 8:21 AM
Sam HobbsPosted Aug 15, 2010, 3:55 PM
Majid KamaliPosted Aug 15, 2010, 2:17 PM
Sam HobbsPosted Aug 15, 2010, 1:20 PM
Majid KamaliPosted Aug 15, 2010, 12:45 PM
For example in class Form1, out of any method, I can't write something like this :
string m = TextBox1.Text;
Sam HobbsPosted Aug 15, 2010, 12:14 PM