Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

panel autoscroll problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim B?cker - 07 Sep 2004 13:53 GMT
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.
Herfried K. Wagner [MVP] - 07 Sep 2004 16:14 GMT
* "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?

Signature

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

Tim B?cker - 07 Sep 2004 21:04 GMT
> > 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.
Herfried K. Wagner [MVP] - 07 Sep 2004 21:45 GMT
* "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.
[quoted text clipped - 8 lines]
> 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.

Signature

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

Tim B?cker - 07 Sep 2004 22:08 GMT
> * "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.
Tim B?cker - 07 Sep 2004 23:07 GMT
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.