12-11-2009, 01:01 AM
How do I make it that only one of it can be checked at a time? So if they check any others, it automatically unchecks the previous one that was checked.
Thanks.
[Help] Vb 2008 CheckBoxes
|
12-11-2009, 01:01 AM
How do I make it that only one of it can be checked at a time? So if they check any others, it automatically unchecks the previous one that was checked. Thanks.
12-11-2009, 01:24 AM
(12-11-2009, 01:01 AM)HmanDude Wrote: The whole reason for checkbox's was so you can check multiple box's. For one selection you should be using radio buttons. Anyway, refer to here. http://social.msdn.microsoft.com/Forums/...c26631d31e Should be helpful.
12-11-2009, 07:33 AM
You should use RadioButtons to select one Checkboxes are for selecting many
Just use this :
Just use this (radiobuttons) : Code: If RadioButton1.Checked = True Then [/quote]
12-11-2009, 11:33 AM
(12-11-2009, 09:10 AM)dunlop03 Wrote: Just use this : yes this is the right answer but , you wanted it for checkbox so replace RadioButton1 with CheckBox1 and etc .. radio buttons adn checkboxes are 2 different controls
That wont work , trust me you need to code the check boxes like this :
Code: Private Sub CheckBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.Click
12-11-2009, 12:33 PM
Thanks guys. dunlop03 your code works for me atm.
Also using RadioButtons on another project im working on so thanks
12-28-2009, 06:28 PM
I'm not sure that code is neccasery
Code: If RadioButton1.Checked = True Then When i use radio buttons and for example i use radiobutton 1, than i change to radiobutton 2, number 1 disappear. Sorry for bad explanation, and sorry if I am wrong.
12-29-2009, 04:10 AM
No m8 ur correct , but its different for radiobuttons and checkboxes , slightly
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
VB 2008 - Useful Code | Apache | 36 | 16,043 |
11-25-2012, 10:37 PM Last Post: ƃu∀ ıʞƃu∀ |
|
[Pandora Incorporated] Visual Basic 2008 - Source Code Grabber [VIDEO TUTORIAL] | Marik™ | 13 | 4,677 |
05-23-2011, 06:41 PM Last Post: KoBE |
|
[Pandora Incorporated]Visual Basic 2008 -MD5 Encryptor [VIDEO TUTORIAL] | Marik™ | 2 | 1,661 |
05-13-2011, 11:06 AM Last Post: Imports System.Net |
|
[Pandora Incorporated] Visual Basic 2008 - Text To Speech [VIDEO TUTORIAL] | Marik™ | 1 | 1,576 |
04-14-2011, 05:37 PM Last Post: Emily |
|
[Help] [VB.NET 2008] Textbox Contents Encryption. | Example | 4 | 4,003 |
02-23-2011, 01:16 AM Last Post: Example |