Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing the contents of a Picture Box

Status
Not open for further replies.
Jun 12, 2003
16
CA
Hi,

I have two forms, an Input form and a Report form. The user will input data (on the Input form) and when they click the "View Report" button, the Report form will pop up and display a report in a picture box.

I also have a Go Back button on my Report form that allows the user to return to the Input form. What I would like to do is clear the contents of the picture box when the user clicks the Go Back button so that the report will get re-displayed when the user clicks the "View Report" button a second time. Right now, it will display under the first report (because the contents of the picture box have not been cleared).

Is this possible? If so, can someone tell me how to do this.

Thanks in advance.
 
You can also try some of these

Picture1.Refresh
Picture1.Picture = Nothing
Picture1.BackColor = vbBlack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top