VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Paint picture on form from 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)

Paint picture on form from Picture Box Control

Rate Paint picture on form from Picture Box Control



'Painting on Form from Picture Box Control:

'Open a standard exe form

'Place a Picture Box Control over the form

'Make size of the Picture Box control small

'Place a Command Button over the form with the caption property Paint Form.

'Type the code given below

Private sub Form_Load()

Picture1.Picture=LoadPicture("Path of the BMP File")

End Sub

Private Sub Command1_Click()

Form1.AutoRedraw=True

Form1.PaintPicture Picture1.Picture,100,100

End Sub

'Run the application and Clicking on command button paint the picture on form Loaded into the Picture Box control.



Download this snippet    Add to My Saved Code

Paint picture on form from Picture Box Control Comments

No comments have been posted about Paint picture on form from Picture Box Control. Why not be the first to post a comment about Paint picture on form from Picture Box Control.

Post your comment

Subject:
Message:
0/1000 characters