Write a Vb.net program to design the following form, accept all details from user and display the details through message box.
Form:-
Program:-
Public Class slip18
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim a, b As String
If CheckBox1.Checked = True Then
a = CheckBox1.Text
ElseIf CheckBox2.Checked = True Then
a = CheckBox2.Text
ElseIf CheckBox3.Checked = True Then
a = CheckBox3.Text
End If
If RadioButton1.Checked = True Then
b = RadioButton1.Text
ElseIf RadioButton2.Checked = True Then
b = RadioButton2.Text
ElseIf RadioButton3.Checked = True Then
b = RadioButton3.Text
End If
MsgBox("Name : " + TextBox1.Text + " Qualification : " + a + " post: " + b)
End Sub
End Class
Output:-
Design:-
1) Take Label, Checkboxes, RadioButtons, TextBox, GroupBoxes, and Button on Design Form.
2) Set Text to Labels and Checkboxes.
0 Comments