944,196 Members | Top Members by Rank

Ad:
Jul 2nd, 2007
0

clearing picture from picture box

Expand Post »
I am doing a picture in my project and I want to clear that picture from the picture box without deleting the other drawn picture when a command button is pressed .
any help
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
teklu is offline Offline
12 posts
since Jan 2007
Jul 2nd, 2007
0

Re: clearing picture from picture box

Hi,

Just use:

Picture1.Cls

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jul 2nd, 2007
0

Re: clearing picture from picture box

sir, the code
picture1.cls
will clear the entire picutre box what I want is to clear only one picture from the existing pictures inside the picture box.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
teklu is offline Offline
12 posts
since Jan 2007
Jul 4th, 2007
0

Re: clearing picture from picture box

vb Syntax (Toggle Plain Text)
  1. picture1.Picture = New StdPicture
Reputation Points: 35
Solved Threads: 0
Light Poster
~Paul~ is offline Offline
31 posts
since May 2007
Jul 4th, 2007
0

Re: clearing picture from picture box

Hi,

Keep a Dummy Picture Box on the Form Say DPict

use this Code:
DPict.Picture = LoadPicture 'Clear Pict
Picture1.PaintPicture DPict.Image, 2000, 0, 2000, 1000
Picture1.Refresh

This Clears the Picture stored in Area :
2000, 0
And Width=2000, Height 1000


Regards
Veena
Last edited by QVeen72; Jul 4th, 2007 at 5:26 am. Reason: Slight Change in Code
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jan 4th, 2012
0

Image or picture Clear Code in VB6

image1.visible= False
image1.picture= Nothing
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ZahodLakho is offline Offline
3 posts
since Sep 2011
Jan 4th, 2012
0
Re: clearing picture from picture box
try a simpler approach

image1.picture=nothing
Reputation Points: 20
Solved Threads: 13
Junior Poster in Training
dspnhn is offline Offline
90 posts
since May 2008
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: i want to show the variables in a datagrid but it gives me "subscript out of range".
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Insert Null Values into Database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC