Hello all,
I know it is a simple question but i'm barely experience with C#, and i need a way to find out how to add a handler for when my referenced form is closing...
In VB.NET it was a simple line of code like this...
but in c# I just can't seem to figure it out, I just want it to be something like this, but not in VB.NET, in C#.net
Also, if there is some special way I have to call my "sub", as it is in VB.NET, could you please help me out...i've been searching all over but the examples given are much complicated...
joedeene
I know it is a simple question but i'm barely experience with C#, and i need a way to find out how to add a handler for when my referenced form is closing...
In VB.NET it was a simple line of code like this...
Code:
AddHandler btn.Click, AddressOf btn_Click
Code:
AddHandler form2.closing, AddressOf myform_closing
joedeene
Comment