ExclamationRadiobuttons

Posts 1–2 of 2 · Page 1 of 1
Radiobuttons
hey there,
i have a program with 2 textboxes and 4 radiobuttons and 5 buttons
button 1,2,3 and 4 are disabled
IN BUTTON 5
if the 2 textboxes are empty then msg box ("something bla bla")
and if none of the radio buttons are clicked then msg box something
and if the textboxes and one of the radiobuttons are clicked then the 4 buttons are active
thnks alot
@Amrtherapper

Besure u have button 1 > 4 enabled = false.
You mean this or something else ?

Code:
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
        If RadioButton1.Checked = True Then
            Button1.Enabled = True
            Button2.Enabled = True
            Button3.Enabled = True
            Button4.Enabled = True
        End If
    End Sub

    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
        If RadioButton1.Checked Or RadioButton2.Checked Or RadioButton3.Checked Or RadioButton4.Checked Or RadioButton5.Checked = False Then
            MsgBox("Select a radiobutton!")

        End If
        If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Then
            MsgBox("No information found!")
        End If
    End Sub
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us