panel autoscroll problem

  • Thread starter Thread starter Tim Bücker
  • Start date Start date
T

Tim Bücker

Hello.

I have a problem with a graphic error that shows up when scrolling a
picturebox within a panel which AutoScroll property is set to true.
As until now nobody could help me and I didn´t find anything suspicious by
myself it has to be a bug in .NET ;-)

I wrote a little test scenario (7 KB) that can be found here:
www.uni-koblenz.de/~hagbard/PanelScrollingBug.zip
(A test bitmap called test.bmp must reside in C:\ by default)

Thanks a lot for looking into the zip file and for ANY comment about this
problem.
Greetings,
Tim.
 
* "Tim Bücker said:
I have a problem with a graphic error that shows up when scrolling a
picturebox within a panel which AutoScroll property is set to true.
As until now nobody could help me and I didn´t find anything suspicious by
myself it has to be a bug in .NET ;-)

Only to make sure I experience the same problem as you: When scrolling,
sometimes parts of the image are not drawn?
 
Herfried K. Wagner said:
Only to make sure I experience the same problem as you: When scrolling,
sometimes parts of the image are not drawn?

Hello.

First of all, thanks for answering!
Yes, one could describe the problem like that or that some parts are
overlapping other parts.

Do you have an idea?
Greetings,
Tim.
 
* "Tim Bücker said:
First of all, thanks for answering!
Yes, one could describe the problem like that or that some parts are
overlapping other parts.

I played around with it and I am not able to find the reason for this behavior.

What you can do is trying to handle the panel's scroll events
(<URL:http://dotnet.mvps.org/dotnet/faqs/downloads/panelscrollevent.txt>)
and force an update of the picturebox every time the scrollbars are moved.
 
Herfried K. Wagner said:
What you can do is trying to handle the panel's scroll events [...]

That worked!
But I still want to know the reason for this "bug". So if you´ll ever know
;-)

Greetings and thanks,
Tim.
 
Back
Top