469,945 Members | 2,280 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

how do you get autoscrollbars when inside a toolstripcontainer

I am trying to build a program in VS 2005 with C#, but I have ran into a problem I have yet to find a solution to and I know it is probably something simple. I have a tabcontrol container and inside each tabpage I want to place a toolstripcontainer with the buttons, textboxes, datagridviews, etc inside this toolstripcontainer. This is all fine but when I resize the window it does not create a scroll bar when it is sized smaller than the location of the controls in the container. I have tried adding in a panel and placing the controls on it but get the same issue. Any help would be great.
Jul 30 '07 #1
4 2824
Plater
7,872 Expert 4TB
I you place it in the seperate pannel, did you remember do the following:
Set the panel's autoscroll property?
Set the toolstripcontainer to FILL (or some other auto-grow-sizeing property)?
Jul 30 '07 #2
Yes when I added in the panel I tried setting it both to dock = fill and anchor = left,right, top, bottom with the autoscroll = true. I also set the textbox with multiline to anchor = left,right,top,bottom as well. but still no help
Jul 30 '07 #3
Plater
7,872 Expert 4TB
if you set something to DOCK/FILL you must turn the AUTOSCROLL OFF.
They have to be applied to different objects.
Jul 30 '07 #4
Scenario's I have tried

toolstripcontainer anchored top,left,right,bottom
panel anchored top,left and autoscrollbars true
result no scroll bars in panel when resizing

toolstripcontainer docked fill
panel anchored top,left and autoscrollbars true
result no scroll bars in panel when resizing

toolstripcontainer docked fill
panel anchored top,left,right,bottom and autoscrollbars true
result worked

Thanks for the tips I guess I just over looked the last scenario when I was going through things.
Jul 30 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Neeraj | last post: by
2 posts views Thread by Alan T | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.