Hello,
In a Base Form I have a toolbar and have implemented the Click event
as:
protected virtual void toolBar1_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
if (e.Button == tbClose)
Close();
}
In inherited Forms I add other buttons to the toolbar and assign the
Click event and write things like:
protected override void toolBar1_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
if (e.Button == tbCalc)
Calc();
else
base.toolBar1_ButtonClick(sender, e);
}
The problem is that when I click on the tbCalc button the event is
raised twice and that I will end up calling twice the Calc() method.
Would anybody understand why please?
Thanks,
Michael
--
Michael
----
http://michael.moreno.free.fr/
http://port.cogolin.free.fr/