It is (c# but the forum there is like a dead zone lol and I can convert vb to c# pretty easily). I create a textbox like this:
Code:
TextBox myText = new TextBox();
form.Controls.Add(myText);
The "form" you see there was passed in through a method in which I created the textbox like this:
Code:
public class Test
{
public static void createTextBox(Form form)
{
//textbox code here
}
}
Now in the form class I want to change the textbox's text property to "hello". How would I do that? Am I doing something wrong?