Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Radio button coming up checked at activation
Message
From
14/11/2018 13:31:04
 
 
To
14/11/2018 12:37:09
General information
Forum:
C#
Category:
Network programming
Miscellaneous
Thread ID:
01663318
Message ID:
01663363
Views:
33
>>>I'm beginning to remember why I hated Windows apps so much.
>>>
>>>Simple form, 2 radio buttons, a text box for display and a 'quit' button.
>>>
>>>If the first radio button rbAutomate has .Autocheck = true, on activation, it's the only thing shown and we immediately progress to the CheckedChanged code.
>>>If rbAutomate has Autocheck = .false, it shows the entire form on activation, but rbAutomate is not selectable. You can tab to it, you can click on it til the cows come home, but you can't select it.
>>>
>>>Either one of these kinda defeats the purpose of having radio buttons, doncha think?
>>>
>>>What am I missing?
>>
>>
>>Are your radio buttons in a container?
>
>Insomuch as a form could be considered a container, yes.


From csharpcorner:


"Radio buttons are usually placed in a group on a container control, such as a Panel or a GroupBox, and one of them is selected."

In order to act as a group Radio Buttons must be in a container - other than the form.

I'm not sure that will solve the select issue, but your Radio Buttons won't work as a group without the container.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform