Skip to content

How to validate radiobuttons in vb.net ?

Asked Feb 14, 2008, 1:43 AM EST1 answer
Share
LinkedInX

Hi

I have 2 radiobutton in my vb.net application..first radio button name is  yes and another one is no..

i want to show error when i did not select any one of these radiobuttons?

like u must choose any one radio button

plz answers with code..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    You can check states:

    If  RadioButton1.Checked or RadioButton2.Checked Then

       ' Do something

    Else

    ' Show error message

    End If

    0