VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Draw a Line inside the picture box control

by Bhuwan Chand Joshi (69 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Draw a Line inside the picture box control

Rate Draw a Line inside the picture box control



'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



Download this snippet    Add to My Saved Code

Draw a Line inside the picture box control Comments

No comments have been posted about Draw a Line inside the picture box control. Why not be the first to post a comment about Draw a Line inside the picture box control.

Post your comment

Subject:
Message:
0/1000 characters