command button control is used to get the user’s response depending on which some specific action can taken.Command buttons determine when the user wants to do something such as exit the application or begin printing. In almost every case, you will perform these tasks to add a command button to an applicationFor example you can see the “OK” button when you click on “OK” button an event is fire and a msg box is open.
1.Open Visual Basic 6.0 and create a new Standard EXE Project.
2.From Standard EXE project Dialogbox choose Standard EXE form.
3. Add Two Command Button from toolbox on the form.
4.From the properties window change the caption of the Command Buttons
DESIGNING OF COMMMAND BUTTON:
5.After design the form open the code window and write code:
6.Then press f5 key for output
7. when you click Command Button1 whose caption is “hello” then a msgbox show
TreeView Control in Visual Basic 6.0
The TreeView control display a hirearchical display node object.Each node consist of label ,optional bitmap.You ...read more
DriveListBox,DirListBox and FileListBox in Visual Basic 6.0
Three of the controls on the ToolBox let you access the computer's file system. They ...read more
Pointer Control in Visual Basic 6.0
Pointer control is used to resize and position a control. When you're drawing controls on ...read more
OLE control in Visual Basic 6.0
Insertable Objects (like the Excel Worksheet object; with a list of the employees, or a ...read more
ToolTip in Visual Basic 6.0
A tool-tip is a small box that is displayed at the mouse location when overing ...read more
Frame,Image and Picture Control in Visual Basic 6.0
A frame is an object that provide a visual an functional container for controls.it is ...read more