Results 1 to 2 of 2

Thread: ToggleButtons

  1. #1
    Join Date
    Aug 2003
    Location
    Los Angeles
    Posts
    6

    Unanswered: ToggleButtons

    Question, I have a ToggleButton that I use to hide checkboxes, this is the code I have on the the ToggleButtons Click event;
    Check1.Visible = False
    Check2.Visible = False
    Check3.Visible = False

    On what event property of the toggle button do I use to make these checkboxes visible again? And if so, would I just change the False to True, in the code?

  2. #2
    Join Date
    Feb 2003
    Location
    Auckland, NZ
    Posts
    150
    You will still use the click event.

    You need to check if the toggle button is "in" or "out"

    Code:
    If togglebutton.Value = True then 'The button is in
    
    Check1.Visible = True
    Check2.Visible = True
    Check3.Visible = True
    
    
    else 'the button is out
    
    Check1.Visible = False
    Check2.Visible = False
    Check3.Visible = False
    
    end if
    JJ Kennedy
    Double J IT Solutions
    www.doublejit.co.nz

    VB 6, VB.NET, ASP.NET, MS SQL Server, MySQL, MS Access

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •