Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Windows Toggle Button Style Equivalent in Infragistics WInToolBar

Last post 07-03-2008 13:52 by Swetha. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-03-2008 11:14

    • Swetha
    • Top 500 Contributor
    • Joined on 12-04-2007
    • Herndon
    • Points 285

    Windows Toggle Button Style Equivalent in Infragistics WInToolBar

    Hi-

     Is there any Tool type that serves the same purpose as Toggle buttons in Windows. I used e.button.pushed property in WIndows for button of style Toggle on the tool type but i can't find same property in infragistics. Any Idea?

     

    Thanks-

    • Post Points: 20
  • 07-03-2008 11:31 In reply to

    • somay
    • Top 50 Contributor
    • Joined on 12-10-2007
    • Virginia
    • Points 1,040

    Re: Windows Toggle Button Style Equivalent in Infragistics WInToolBar

    Answer

    You can't get the Toggle style button in infragistics but still you may play with StateToolButton to get the same behaviour. Follow these steps to add and use state button:

    1. Add a new tool item with Tool Type  "State Button"

    2. in your tool click event. put this code.

    Dim oTool As Infragistics.Win.UltraWinToolbars.StateButtonTool
    oTool = tbmSessionDetails.Tools(ToolItemkey)
    If oTool.Checked Then
          ' Do something
     Else
            'Do Something
    End If

    SoMaY
    -----------------
    A fundamental rule in technology says that whatever can be done will be done.
    • Post Points: 20
  • 07-03-2008 13:52 In reply to

    • Swetha
    • Top 500 Contributor
    • Joined on 12-04-2007
    • Herndon
    • Points 285

    Re: Windows Toggle Button Style Equivalent in Infragistics WInToolBar

    It's working as I expected. Thank you.

    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems