- Home
·
- Graphics
·
- Clear Graphics from the Picture Box Control
Clear Graphics from the Picture Box Control
Clear Graphics from the Picture Box Control
Rate Clear Graphics from the Picture Box Control
(1(1 Vote))
'Clearing 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.Picture=LoadPicture("Path of the BMP File")
End Sub
Private Sub Command1_Click()
Picture1.Picture=LoadPicture
End Sub
'Use LoadPicture Method without specifying image file to clear the Picture Box control
Clear Graphics from the Picture Box Control Comments
No comments yet — be the first to post one!
Post a Comment