Android Question Togglebutton.checked (force by program)

Discussion in 'Android Questions' started by ALEX BISSARO PITTA, May 20, 2019.

  1. ALEX BISSARO PITTA

    ALEX BISSARO PITTA Member Licensed User

    How to force a togglebutton by means of program? I'm trying "Togglebutton.checked=true" but does not work.
    Is there any way?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why use ToggleButton? Use B4XSwitch from XUI Views. Looks much better.

    Checked works fine. The problem is somewhere else.

    Tested with this code:
    Code:
    Sub Activity_Click
       ToggleButton1.Checked = 
    Not(ToggleButton1.Checked)
    End Sub
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice