- Home
·
- Graphics
·
- Draw a Line inside the picture box control
Draw a Line inside the picture box control
Draw a Line inside the picture box control
Rate Draw a Line inside the picture box control
(1(1 Vote))
'Drawing Line inside the Picture Box Control:
'Open a standard exe form
'Place a Picture Box Control over the form
'Place a Command Button over the form with the caption property Clear Image.
'Type the code given below
Private sub Form_Load()
Picture1.AutoRedraw=True
Picture1.Line (1000,1000) - (50,50)
End Sub
Private Sub Command1_Click()
Picture1.Cls
End Sub
'Use Cls Method to clear the Picture Box control
Draw a Line inside the picture box control Comments
No comments yet — be the first to post one!
Post a Comment