B
br
I have the following Click event handler
//Click event
public void ProcessClick (Object aoSender, EventArgs
aoArgs)
{
MessageBox.Show ("Clicked on " + ((Button)
aoSender).Tag.ToString());
}
and when I compile I get the following error
"error CS0029: Cannot implicitly convert type 'object'
to 'System.Windows.Forms.Button'
What am I doing wrong here?
Thanks
//Click event
public void ProcessClick (Object aoSender, EventArgs
aoArgs)
{
MessageBox.Show ("Clicked on " + ((Button)
aoSender).Tag.ToString());
}
and when I compile I get the following error
"error CS0029: Cannot implicitly convert type 'object'
to 'System.Windows.Forms.Button'
What am I doing wrong here?
Thanks