N
Nick Beenham
Can anyone give me a tip on how to pass a value from a
class to a windows form.
e.g. adding text to a textbox.
public class AnotherClass
{
//usual class code
public void AddText()
{
Form1.TextBox.Text = "InsertText here";
}
}
It keeps asking for an object reference
Hope someone can help
Nick
class to a windows form.
e.g. adding text to a textbox.
public class AnotherClass
{
//usual class code
public void AddText()
{
Form1.TextBox.Text = "InsertText here";
}
}
It keeps asking for an object reference

Hope someone can help

Nick