VB Autoscroll Methode
-
Mittwoch, 16. Mai 2012 07:39
Hallo...,
ich habe ein Formular mit einem darin enthaltenen Panel. Die Auflösung des Formulars ist 1280 x 1024. Das Panel hat eine Auflösung von 2000 x 1024 mit der Eigenschaft:
panel.autoscroll = true
Trotz dieser Eigenschaft wird zwar das Panel in der ganzen Breite dargestellt -also auch außerhalb des sichtbaren Bereiches-, aber ohne Scrollbalken, sodaß ich nicht in der gänzen Breite im Formular blättern kann.
Was mach eich falsch?
Vielen Dank.
Gruß Püsch
Alle Antworten
-
Mittwoch, 16. Mai 2012 07:51
Hallo Püsch,
kann es ein, dass dieser Absatz aus der Doku auf die Eigenschaften Deiner Controls zutrifft:
If you set AutoScroll on the container to Yes and then set the Anchor property on one or more of the controls inside of the container to Right, then no scrollbar ever appears. The class derived from ScrollableControl acts as if AutoScroll were set to No.
Hannes
If you have got questions about this, just ask.
In a perfect world,
users would never enter data in the wrong form,
files they choose to open would always exist
and code would never have bugs.
C# to VB.NET: http://www.developerfusion.com/tools/convert/csharp-to-vb/- Als Antwort markiert Püsch_Münster Freitag, 18. Mai 2012 14:39
-
Freitag, 18. Mai 2012 14:40
Hallo Hannes,
Bingo, das wars.
Vielen Dank und einen schönen Gruß aus Münster
Michael

