954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

clearing picture from picture box

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

teklu
Newbie Poster
12 posts since Jan 2007
Reputation Points: 10
Solved Threads: 1
 

Hi,

Just use:

Picture1.Cls

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

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.

teklu
Newbie Poster
12 posts since Jan 2007
Reputation Points: 10
Solved Threads: 1
 
picture1.Picture = New StdPicture


;)

~Paul~
Light Poster
31 posts since May 2007
Reputation Points: 35
Solved Threads: 0
 

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

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

image1.visible= False
image1.picture= Nothing

ZahodLakho
Newbie Poster
3 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

try a simpler approach

image1.picture=nothing

dspnhn
Junior Poster in Training
90 posts since May 2008
Reputation Points: 20
Solved Threads: 13
 
  • **picture1.open=loadpicture("m.jpg")
  • picture1.cls
  • msgbox"r u sure want to delete"
  • picture1.refresh**
mustaffa hasan
Light Poster
26 posts since Dec 2010
Reputation Points: 10
Solved Threads: 2
Infraction Points: 2
 

Post: Markdown Syntax: Formatting Help
You