T
tirrell payton
Hello,
I am trying to manipulate the properties of a form's controls from a class.
I dont want to make the form's control public.
Attached is a code snippet of what I am trying to accomplish:
Public Form1()
public void SetLabel4Text(string theText)
{
label4.Text = theText;
}
---
class clsDataLayer
Form1.SetLabel4Text("Hello World");
When I try to do this, I get invalid token '(' in class, struct, or
interface member declaration
Is what I am attempting to do invalid?
I am trying to manipulate the properties of a form's controls from a class.
I dont want to make the form's control public.
Attached is a code snippet of what I am trying to accomplish:
Public Form1()
public void SetLabel4Text(string theText)
{
label4.Text = theText;
}
---
class clsDataLayer
Form1.SetLabel4Text("Hello World");
When I try to do this, I get invalid token '(' in class, struct, or
interface member declaration
Is what I am attempting to do invalid?