panel autoscroll problem

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.
 
H

Herfried K. Wagner [MVP]

* "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?
 
T

Tim Bücker

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.
 
H

Herfried K. Wagner [MVP]

* "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.
 
T

Tim Bücker

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top