ScrollabelControl Bug ?

Jarod

Regular
Joined
Feb 5, 2003
Messages
82
Location
Bruxelles
Hello,

I was using a Panel control and wanted the following behaviour:
- AutoScroll to be able to set an AutoScroll position (to synchronise two scrollable panel)
- Hide both scrollbars to define my scrollBar common to my two forms.

Accordingly to the MSDN which says:
To manually override which scroll bars are visible, set the VScroll and HScroll properties. If either property is set to false, the corresponding scroll bar will not be visible, even if the AutoScroll property is set to true
I create my own Panel object with that simple definition:
Code:
Public Class myPanel
  Inherits Panel

  Public Sub New()
    MyBase.New()
    Me.HScroll = False
    Me.VScroll = False
    Me.AutoScroll = True
  End Sub
End Class
But if my panel is correctly "AutoScrolled", both ScrollBars are visible.
Does anyone has already experienced that and found a solution / workaround?
Thanks,
 
Don't you want to do:
Visual Basic:
    Me.AutoScroll = True
    Me.HScroll = False
    Me.VScroll = False

instead of
Visual Basic:
    Me.HScroll = False
    Me.VScroll = False
    Me.AutoScroll = True


-nerseus
 
Thanks for your reply!
However, it still doesn't work.
If i don't set any of these values, the default values (TRUE) remain and the scrollbars are drawn.
Modifying the code order doesn't change anything either.
For the microsoft support, everything is working nice, but I shouldn't do that in the new function. Ok, I have tried anywhere else, calling a property after, overriding the OnPaint method to reset HScroll and VScroll to false, but it doesn't work either.
Does anybody have succeeded to do that?
 
Back
Top