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 / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

bug with ScrollableControl & AutoScrollPosition in 2.0 beta2 ??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 01 Jul 2005 06:04 GMT
I have a scrolable control
I set its scrollable position to
this.AutoScrollPosition = new Point(20, 20);

if I get the position after that, it's inverted!
Console.WriteLine(this.AutoScrollPosition);
=> {X=-20, y=-20}

and if I try to set negative value, they are zeroed....
this.AutoScrollPosition = new Point(-20, -20);
Console.WriteLine(this.AutoScrollPosition);
=> {X=0, Y=0}

my question is:
is it normal? (hence I should program with this logic in mind)
or is it a bug? (hence that would be fixed and I will have to modify my
code)
Lloyd Dupont - 01 Jul 2005 07:16 GMT
don't worry, ScrollableCOntrol is pretty hopeless anyway, so I'm going to
build my own.
now if you have links to already made available such control, that would be
nice.

hopeless things discovered so far with ScrollableControl:
- at last for 2.0 beta 2: the AustoScrollPosition you set is multiply by -1
- scrolling break my content into peaces and my shapes in the wrong places?
- I want to scroll when the user drag the content and after setting the new
AutoScrollPosition, not even a call to INvalidate or BeginInvoke(Invalidate)
would repaint correctly

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.