Shape control is used to draw different shapes on the form. Available shapes are:
- 4-ROUNDED RECTANGLE
- 5-ROUNDED SQUARE
1.Start -> program-> Microsoft Visual Studio 6.0 -> Microsoft Visual Basic 6.0
2. Visual Basic load and appears on your screen.
3.Choose Standard Exe. From dialog box.
4.A form is open in the screen. Add Four command button on the form.
5. Change the caption property of command1(Square),command2(oval),command3(Circle),command4(rounded).6
6.Open the code window from project window.Select the object from object dropdown list and tpye the code here as shown in figure below.
7.when the codding is complete .Run the program with press<f5> key.
8.when you click on circle button acircle shape is shown on the form,if you click on rounded round rectange shape is shown on the form,if you click on sequare button asquare shape is shown on the form,if you click on ovel button then ovel shape is shown on the form like below in figure:
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