Reply to thread

dunno if this helps... here is what I have used


...first create a delegate...


public class ClassName


  public ClassName()

{

public delegate void PlusButtonClickEventHandler(object sender, System.EventArgs e);


//define the event...


public event PlusButtonClickEventHandler PlusButtonClick;


}


// within the class you are referencing the control/class add

// an event constructor...

 

...


public class SomeOtherClass : System.Windows.Forms.Form


   public SomeOtherClass()

{


this.form.PlusButtonClick += new ClassName.PlusButtonClickEventHandler(Function_Name);



// then add the function



private void Function_Name(object sender, System.EventArgs e)

{

    //do stuff;

}


}


CS


Back
Top