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).
Form:-
Program:-
Public Class slip17
Private Sub slip17_Load(sender As Object, e As EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("BCA")
ComboBox1.Items.Add("BSC")
ComboBox1.Items.Add("MCA")
SplitContainer1.Panel2.Hide()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
SplitContainer1.Panel2.Show()
Label26.Text = TextBox1.Text
Label25.Text = TextBox2.Text
Label24.Text = TextBox3.Text
Label23.Text = ComboBox1.SelectedItem()
If RadioButton1.Checked = True Then
Label22.Text = RadioButton1.Text
ElseIf RadioButton2.Checked = True Then
Label22.Text = RadioButton2.Text
End If
Label21.Text = DateTimePicker1.Value
Label20.Text = TextBox4.Text
Label19.Text = TextBox5.Text
End Sub
End Class
Output:-
Design:-1) Take SplitContainer, Button, Labels, TextBoxes, DateTimepicker, Radio buttons on design form. (note - Instead of SplitContainer you can use GroupBox as well But you need to change a code bit. )
2) Set Text on Labels, Buttons, and Radio buttons.
3) On panel 1 arrange some labels as well as TextBoxes, Radio Buttons
3) On panel 2 arrange All Labels for displaying information about the student.
-
Next Write a Vb.net program to design the following form, accept all details from user and display the details through message box.
-
Previous Write a Vb.net program to design the following form, it contains the three menus Color (Red,Blue,Green) ,Window(Maximize, Minimize, Restore) and Exit. On Selection of any menu or submenu result should affect the form control( for example if user selected Red color from Color menu back color of form should get changed to Red and if user selected Maximize from Window Menu then form should get maximized).
0 Comments