E10 Custom Button

Try this.

        myButton.ToolClick += myButton_ToolClick;

        void myButton_ToolClick(object sender, ToolClickEventArgs e)
        {
            throw new NotImplementedException();
        }


From: "bwalker@... [vantage]" <vantage@yahoogroups.com>
To: vantage@yahoogroups.com
Sent: Thursday, June 25, 2015 11:03 AM
Subject: [Vantage] E10 Custom Button



I have added a custom button on the "Actions" menu
I am having trouble adding an event handler to handle the button click

This code produces an error:
myButton.Click += new System.EventHandler(myButton_Click);

The error message:
 'Infragistics.Win.UltraWinToolbars.ButtonTool' does not contain a definition for 'Click' and no extension method 'Click' accepting a first argument of type 'Infragistics.Win.UltraWinToolbars.ButtonTool' could be found (are you missing a using directive or an assembly reference?)

Any ideas on the 'proper' way to add an event handler to take care of the button click?

Thanks,

bw




I have added a custom button on the "Actions" menu

I am having trouble adding an event handler to handle the button click


This code produces an error:

myButton.Click += new System.EventHandler(myButton_Click);


The error message:

 'Infragistics.Win.UltraWinToolbars.ButtonTool' does not contain a definition for 'Click' and no extension method 'Click' accepting a first argument of type 'Infragistics.Win.UltraWinToolbars.ButtonTool' could be found (are you missing a using directive or an assembly reference?)


Any ideas on the 'proper' way to add an event handler to take care of the button click?


Thanks,


bw



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Thu, Jun 25, 2015 at 11:03 AM, bwalker@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><p><span>I have added a custom button on the &quot;Actions&quot; menu</span></p><p><span>I am having trouble adding an event handler to handle the button click</span></p><p><span><br></span></p><p><span>This code produces an error:</span></p><p><span>myButton.Click += new System.EventHandler(myButton_Click);</span></p><p><span><br></span></p><p><span>The error message:</span></p><p><span>Â &#39;Infragistics.Win.UltraWinToolbars.ButtonTool&#39; does not contain a definition for &#39;Click&#39; and no extension method &#39;Click&#39; accepting a first argument of type &#39;Infragistics.Win.UltraWinToolbars.ButtonTool&#39; could be found (are you missing a using directive or an assembly reference?)</span></p><p><span><br></span></p><p><span>Any ideas on the &#39;proper&#39; way to add an event handler to take care of the button click?</span></p><p><span><br></span></p><p><span>Thanks,</span></p><p><span><br></span></p><p><span>bw</span></p><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

I did google – but I googled the error message to no avail L

 

Thanks!!

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, June 25, 2015 11:07 AM
To: Vantage
Subject: Re: [Vantage] E10 Custom Button

 






Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Thu, Jun 25, 2015 at 11:03 AM, bwalker@... [vantage] <vantage@yahoogroups.com> wrote:

 

I have added a custom button on the "Actions" menu

I am having trouble adding an event handler to handle the button click

 

This code produces an error:

myButton.Click += new System.EventHandler(myButton_Click);

 

The error message:

 'Infragistics.Win.UltraWinToolbars.ButtonTool' does not contain a definition for 'Click' and no extension method 'Click' accepting a first argument of type 'Infragistics.Win.UltraWinToolbars.ButtonTool' could be found (are you missing a using directive or an assembly reference?)

 

Any ideas on the 'proper' way to add an event handler to take care of the button click?

 

Thanks,

 

bw