borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Text Effect)Next Topic (Deployment concerns...) New Topic New Poll Post Reply
AndreaVB Forum : VB General : PictureBox Content Clear after Print
Poster Message
mwjavier
Level: Guest


icon PictureBox Content Clear after Print

Hello!

First time poster! Just discovered this site when looking for help in regards to printing out a picturebox's contents.

In any case, the PictureBox content print code listed on this website has been extremely helpful! In fact, it's doing exactly what it is that I'm looking for.

However, it seems that when I try to 'clear' the contents of my picturebox with my 'Clear' button, it seemingly retains the contents of what was printed!  

In any case, the .Cls doesn't seem to work post-use of the print code, and when I call more text into the contents of my pictureBox, it starts to overwrite and things start to look even more sloppy.  

Can anyone help?

[Edited by mwjavier on 07-06-2004 at 10:41 AM GMT]

07-06-2004 at 06:36 PM
| Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: PictureBox Content Clear after Print

Hi

Give this a go.

Private Sub cmdShow_Click()

    Picture1.Picture = LoadPicture("d:\flag.gif")

End Sub

Private Sub cmdClear_Click()

    Picture1.Picture = LoadPicture("")

End Sub



Cheers Steve  

08-06-2004 at 09:23 AM
View Profile Send Email to User Show All Posts | Quote Reply
mwjavier
Level: Guest

icon Re: PictureBox Content Clear after Print

Works like a charm! Much thanks!

08-06-2004 at 08:04 PM
| Quote Reply
AndreaVB Forum : VB General : PictureBox Content Clear after Print
Previous Topic (Text Effect)Next Topic (Deployment concerns...) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder