• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

how to set a default value to a selection button

Uri

New Member
I have two selection buttons that are grouped so that only one can be selected.
63447
LowRes has a default true. This is the code:
>>> use code - tags <<<
Code:
Private Sub LowResSelected_Click()
LR_selected = True
EmbedVLInput.ImagePath = ""
End Sub

Private Sub MidResSelected_Click()
MR_selected = True
EmbedVLInput.ImagePath = ""
End Sub
As long as users click on one of the buttons everything works. However, if a user decides to accept the default and just click OK both LowResSelected and MidResSelected have the FALSE value. Any advice is welcome!
 
Last edited by a moderator:
Assuming that both LR_selected & MR_selected are declared publicly, put this in the Intialise event
Code:
LR_selected =TRUE
 
Back
Top