Reference statement does not compile

Hi there. I am making my first steps in J# as well as .NET in general.

I got a form with a linkLabel on it and in the procedure InitializeComponent () I added this statement:

this.linkLabel1.Click +=newSystem.EventHandler(this.linkLabel1_click);

I was able to compile a similar statement in C# but not in J#. I am getting an error message: Error 1 Cannot find field 'Click' in type 'System.Windows.Forms.LinkLabel'

What is wrong here?

Thanks.

[799 byte] By [AlexBB] at [2008-2-17]
# 1
Hi,
J# syntax for delegates is different from C#. You need to replace your code with following...

this.linkLabel1.add_Click(new System.EventHandler(this.linkLabel1_Click));

Thanks.

JaiprakashSharma at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...
# 2
Greatly appreciate.

Thanks.

AlexBB at 2007-9-9 > top of Msdn Tech,Visual J#,Visual J# General...