0% found this document useful (0 votes)
21 views2 pages

Checkbox and Button

The document describes a class called Form1 with a button click event handler that displays different messages based on which radio button and checkboxes are selected.

Uploaded by

riteshdebadwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Checkbox and Button

The document describes a class called Form1 with a button click event handler that displays different messages based on which radio button and checkboxes are selected.

Uploaded by

riteshdebadwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Gramin Technical And Management Campus

Department Of Computer Engineering

Subject/code: GAD/22034
Name: Ritesh Debadwar Batch: Co4IB Roll no:-69
DOP:- DOS:-

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles Button1.Click

If RadioButton1.Checked = True Then

MessageBox.Show("you are under 70")


ElseIf RadioButton2.Checked = True Then
MessageBox.Show("you are over 70")

End If
If CheckBox1.Checked = True Then
MessageBox.Show("you like poeter new")

End If
If checkbox2.checked = True Then
MessageBox.Show("what the hell")

End If
If checkbox3.checked = True Then
MessageBox.Show("show the simple dude")

End If

End Sub

End Class

You might also like