Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Statebutton
posted

I would write this in VB like this

Dim ToolDay As StateButtonTool = Me.ultraToolbarsManager1.Tools("Day")

ToolDay.Checked = True

 

How would you write it in C#?

 

I tried

StateButtonTool ToolDay = uToolBar.Tools("Day");

ToolDay.Checked = true;

 

It does not like the Tools I get a red line

Error 19 Non-invocable member 'Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.Tools' cannot be used like a method. 

 

 

Parents
No Data
Reply
  • 25
    posted

    try this

    StateButtonTool ToolDay = uToolBar.Tools["Day"];

    ToolDay.Checked = true;

Children
No Data