Rabeea qabaha Rabeea qabaha - 1 month ago 10
Vb.net Question

Add Horizontal Scrollbar for Panel

How i Can Add Horizontal scrollbar for

panel
, i tried to make AutoScroll property to True , but this just show the vertical Scrollbar.

what i want is when the client minimize the
form
a Horizontal Scrollbar appear so he can see all the controls in
panel
, I'm using form without borders.

Maximize `Form :

Maximize `Form
Minimize 'form':

enter image description here

Answer

Try setting programmatically the panel box properties:

panel.Autoscroll = True panel.VerticalScroll.Visible = True panel.HorizontalScroll.Visible = True

Try adjusting your panel size then don't adjust the size of width of each data inside of it. I suppose it is because the data is EXACTLY fitted on your panel box.

Comments