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.

Re: panel autoscroll problem by hirf-spam-me-here

hirf-spam-me-here
Tue Sep 07 10:14:01 CDT 2004

* "Tim Bücker" <timtos_NO-SPAm_@web.de> scripsit:
> 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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Re: panel autoscroll problem by Tim

Tim
Tue Sep 07 15:04:34 CDT 2004

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote:
> > 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?

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.



Re: panel autoscroll problem by hirf-spam-me-here

hirf-spam-me-here
Tue Sep 07 15:45:04 CDT 2004

* "Tim Bücker" <timtos_NO-SPAm_@web.de> scripsit:
>>> 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?
>
> 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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Re: panel autoscroll problem by Tim

Tim
Tue Sep 07 16:08:45 CDT 2004

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb im Newsbeitrag
news:2q6kvoFro4c3U3@uni-berlin.de...
> * "Tim Bücker" <timtos_NO-SPAm_@web.de> scripsit:
> >>> 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 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.

Ok, thanks a lot for trying!
I´ll try your idea - but now I really want to know why this is happening!
;-)

Greetings,
Tim.



Re: panel autoscroll problem by Tim

Tim
Tue Sep 07 17:07:44 CDT 2004

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb im Newsbeitrag
news:2q6kvoFro4c3U3@uni-berlin.de...
> 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.