G
Guest
I am having a problem matching a delegate signature
I have a "Checked ListBox" and I am trying to assign a method to the event like this
this.ckLst.SelectedIndexChanged += new System.EventHandler(this.ckLst_SelectedIndexChanged)
What I want is this signature [NOTE, the default is [System.EventArgs]]
private void ckLst_SelectedIndexChanged(object sender, ItemCheckEventArgs e
if (e.NewValue == e.CurrValue
// then do somethin
Is this possible? I cannot tell from the documentation or the books that I have if this is even possible
I get this erro
C:\Tools\frmList.cs(72): Method 'EmpManager.frmTblList.ckLst_SelectedIndexChanged(object, System.Windows.Forms.ItemCheckEventArgs)' does not match delegate 'void System.EventHandler(object, System.EventArgs)
I have a "Checked ListBox" and I am trying to assign a method to the event like this
this.ckLst.SelectedIndexChanged += new System.EventHandler(this.ckLst_SelectedIndexChanged)
What I want is this signature [NOTE, the default is [System.EventArgs]]
private void ckLst_SelectedIndexChanged(object sender, ItemCheckEventArgs e
if (e.NewValue == e.CurrValue
// then do somethin
Is this possible? I cannot tell from the documentation or the books that I have if this is even possible
I get this erro
C:\Tools\frmList.cs(72): Method 'EmpManager.frmTblList.ckLst_SelectedIndexChanged(object, System.Windows.Forms.ItemCheckEventArgs)' does not match delegate 'void System.EventHandler(object, System.EventArgs)