Write a Vb.net program to generate Sample TreeView control shown in following form:
Form:-
Program:-
Public Class slip15
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TreeView1.Nodes.Add("Computer Science")
TreeView1.Nodes(0).Nodes.Add("BCA")
TreeView1.Nodes(0).Nodes(0).Nodes.Add("FYBCA")
TreeView1.Nodes(0).Nodes(0).Nodes.Add("SYBCA")
TreeView1.Nodes(0).Nodes(0).Nodes.Add("TYBCA")
TreeView1.Nodes(0).Nodes.Add("BSC")
TreeView1.Nodes(0).Nodes(1).Nodes.Add("FYBSC")
TreeView1.Nodes(0).Nodes(1).Nodes.Add("SYBSC")
TreeView1.Nodes(0).Nodes(1).Nodes.Add("TYBSC")
TreeView1.Nodes(0).Nodes.Add("MCA")
TreeView1.Nodes(0).Nodes(2).Nodes.Add("MCA(I)")
TreeView1.Nodes(0).Nodes(2).Nodes.Add("MCA(II)")
TreeView1.Nodes(0).Nodes(2).Nodes.Add("MCA(III)")
End Sub
End Class
Output:-
Design:-
1) Take Treeview control and Button on design Form.
2) Set text on a button.
-
Next 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).
-
Previous Write a Vb.net program to design the following form, select the question number from combo box that question will be displayed into textbox and the options for that question will be displayed on four radio buttons, select option and click on submit button result should be displayed in another textbox.
0 Comments