Rabeea qabaha
Rabeea qabaha

Reputation: 606

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

Upvotes: 0

Views: 4001

Answers (2)

GNMercado
GNMercado

Reputation: 433

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.

Upvotes: 2

wwwMarvsdotcom
wwwMarvsdotcom

Reputation: 72

Try looking in the Panel properties. There you can see the AutoScroll property. The AutoScroll property:

Indicates whether scroll bars automatically appear when the control contents are larger than its visible area.

BUT, if your data inside the Panel is EXACT, horizontal scroll bar or vertical scrollbar will not appear in your Panel.

Upvotes: 0

Related Questions