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.
-
Next Develop the menu based Vb.net application to implement a text editor with cut, copy, paste, save, close operations.
-
Previous Write a Vb.net program to design the following form, this program shows the details of students in the form of form (use split container or Groupbox control to separate the input and output session).
0 Comments