L
Lou
I come from VB so..
I created a class named Channel, to create an instance of that class,
On a form button click i add the following code:
private void button1_Click(object sender, System.EventArgs e)
{
Channel myChannel=New Channel();
}
but I get a build error there, says ";expected"
with Channel() underlined as the culprit but I clearly have the
semi-colon????
All I want to do is create a class and then instantiate it?????
should be easy. In VB its
Dim myChannel As New Channel
-Louie
I created a class named Channel, to create an instance of that class,
On a form button click i add the following code:
private void button1_Click(object sender, System.EventArgs e)
{
Channel myChannel=New Channel();
}
but I get a build error there, says ";expected"
with Channel() underlined as the culprit but I clearly have the
semi-colon????
All I want to do is create a class and then instantiate it?????
should be easy. In VB its
Dim myChannel As New Channel
-Louie