c# - Scrolling Troubles -
c# - Scrolling Troubles -
i have windows form , flow layout panel on form. dynamically adding text boxes flow layout panel , setting auto scroll true flow lay out panel has dynamic text boxes display inaccurate. possible have 1 vertical scroll bar scroll windows form info on flow layout panel?
i have tried setting autoscroll property true, , wrapcontents false, adds scroll bar flow layout panel not whole form. tried code add together scrollbar, succesful scroll form not flow layout panel. there way utilize 1 scroll bar docked on right side of form scroll form , flow layout panel?
the code used create scroll bar follows.
vscrollbar scrollbar1 = new vscrollbar(); scrollbar1.dock = dockstyle.right; controls.add(scrollbar1); edit #1 ---- tried add together scroll bar both form form layout panel , caused scroll bar not display.
vscrollbar scrollbar1 = new vscrollbar(); scrollbar1.dock = dockstyle.right; controls.add(scrollbar1); flowlayoutpanel1.controls.add(scrollbar1); edit #2 ---- want 1 scroll bar able scroll entire windows form, both windows form , flow layout panel.
edit #3 ----- "possible answer" posted above not applicable question shows how add together vertical scroll bar panel not 1 scroll bar command both form , panel.
make sure control's settings follows:
flowlayoutpanel autosize = true autoscroll = false wrapcontents = true anchor = top (required) | left (optional) mainform autoscroll = true based on our chat these should settings going!
c# winforms scrollbar flowlayoutpanel
Comments
Post a Comment