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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll bar with print to picbox??

Status
Not open for further replies.

tommy19

Programmer
Aug 23, 2001
49
US
Howdy,
I have a program that needs to scroll through a picbox which I have Picture1.Print etc forming the output. I have it working but for some reason after I scroll down What scolls off the screen disappears. Is there a way to prevent this from happening? Does the picture need to be a file? Thank you in advance for the help!

tommy
 
If you're sure your code is repainting the right section of the picture when you scroll back up, you may try refreshing the picture box in the VScroll1_MouseUp() routine.

Hope that helps!

-Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Before printing on the picbox, set the picbox.AutoRedraw = True Tim

Remember the KISS principle:
Keep It Simple, Stupid!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top