问题
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 :
Minimize 'form':
回答1:
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.
回答2:
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
.
来源:https://stackoverflow.com/questions/40230238/add-horizontal-scrollbar-for-panel