C and C# are VERY diffrent things.
Following assumes C# and windows enviroment.
The IDE usually generates code behind the scene for the event handling.
Here is what Visual Studio generates for a button on a windows form
this.button1 = new System.Windows.Forms.Button();
this.button1.Click += new System.EventHandler(this.Click);
Vola!, now the procedure Click in button1 will be fired when the button is clicked.
Hope this is of some help
Yours
Zweiblumen
__________________
Sodomy non sapiens. : I'm buggered if I know
|