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
1065
Programatically change the checked state of a StateButtonTool
posted

How do I change the state of a StateButtonTool on an wintoolbar StateButtonTool at runtime. This item belong to an optionset and I need to change the state depending on which selection the user click else where on the form.

  • 48586
    posted

    Hello, ­­­­­

     

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  issue?

  • 48586
    Suggested Answer
    posted

    Hello ,

     

    If you want to change state of the StateButtonTool to checked/unchecked then you should use code like:

    If(ultraToolbarsManager1.Tools["StateButtonToolKey"] is StateButtonTool)

    ((StateButtonTool)ultraToolbarsManager1.Tools["StateButtonToolKey"]).Checked = true/false;

     

    Let me know if you have any further questions.