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? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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
1 Resposta
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