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

autoScroll event for a Panel --> where is it?

Status
Not open for further replies.

mHos

Programmer
Mar 3, 2003
19
US
I am creating a legend in a picture box that is set inside of a panel. I have done this so that I can resize the picture box to whatever size I want and when it gets larger than the panel, scroll bars will automatically appear and handle the scrolling for me. This works wonderfully.

My problems comes that when I scroll, the graphics are "erased" or not drawn where they were not visible. I need to get the scroll event so I can tell it to redraw.

I have not been able to find this event. Does anyone know how to do it, short of making my own redraw function as was said in another post?

Thanks
 
I figured this one out too.

I feel really dumb. It was something really simple. I was trying to access the paint function for the panel. This never gets drawn on, it is covered all of the time by the picturebox.

I needed to use the paint function on the Picturebox. Then when I would scroll it automatically re-painted itself.

Hope that this helps someone else :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top