0

I am coding in C# using visual Studio. I have a form1 and a class Register..how do I access textbox1 frm the class Register?

When I try to access textboxes in form1 from class Register I get an error message indicating that the objects in form1 are not accessible from the class even if I make them public. How do I go about it?

17th Nov 2016, 8:53 AM
Carlos
Carlos - avatar
2 ответов
0
Didn't understand your question but maybe this would help string a=textbox1.Text; textbox1.text="Some Text";
17th Nov 2016, 11:19 AM
Omer Nahum
Omer Nahum - avatar