- Home
·
- Graphics
·
- Paint picture on form from Picture Box Control
Paint picture on form from Picture Box Control
Paint picture on form from Picture Box Control
Rate Paint picture on form from Picture Box Control
(1(1 Vote))
'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.
Paint picture on form from Picture Box Control Comments
No comments yet — be the first to post one!
Post a Comment