vb.net groupbox

I have a groupbox on form1 with some options in it, is there a way to ensure at least 1 is selected without checking if an  option value is checked?
PeterBaileyUkAsked:
Who is Participating?
 
Deepak LakkadConnect With a Mentor Commented:
Hi,

Write GroupBox's Enter Event

refer following code

Private Sub GroupBox1_Enter(sender As System.Object, e As System.EventArgs) Handles GroupBox1.Enter
        RadioButton1.Checked = True
    End Sub

Open in new window


- Deepak Lakkad
0
 
Fernando SotoConnect With a Mentor RetiredCommented:
Whats in the GroupBox? Can you give more info on what you need. A screen shot would also be nice. Thanks.
0
 
PeterBaileyUkAuthor Commented:
ive attached a screenshot but i did it the way deepak suggested.

in access vba the groupbox returns a value dependant on which was clicked so thats what i was wondering.


        If OpCarBulk.Checked = True Then
            StrVehCat = "Car"
        End If
        If OPBikeBulk.Checked = True Then
            StrVehCat = "Motorcycle"
        End If
        If OPLcvBulk.Checked = True Then
            StrVehCat = "Lcv"
        End If
        If OpOthersBulk.Checked = True Then
            StrVehCat = "Others"
        End If
0
 
Deepak LakkadCommented:
Hi,


can you please explain the problem in detail?

- Deepak Lakkad
0
 
PeterBaileyUkAuthor Commented:
its ok its working I just wondered if it would work a different way i will split the points
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.