Hi, sorry for the ridiculously Newbie question... But Im first getting my feet wet with C#...
I cant seem to find how to create the Form Events in C#. In VB.Net I would choose Form1 from the Class Name Drop Down box and then find the Event I wanted within the Method Name Drop Down.
But it does not seem to work the same in C#.Net. I couldnt find any of the Forms events and could only create the Form1_Load() Event by double-clicking the Form within the Designer View.
I tried typing in manually:
But it did not actually fire... This must be easy but something eludes me.
Much thanks in advance...
I cant seem to find how to create the Form Events in C#. In VB.Net I would choose Form1 from the Class Name Drop Down box and then find the Event I wanted within the Method Name Drop Down.
But it does not seem to work the same in C#.Net. I couldnt find any of the Forms events and could only create the Form1_Load() Event by double-clicking the Form within the Designer View.
I tried typing in manually:
Code:
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
MessageBox.Show("Form1_Closing() was called.");
}
Much thanks in advance...