pgabion Posted June 23, 2004 Posted June 23, 2004 How do you automatically show a vertical scrollbar in a form even if the components do not go out of bounds of the form? Also, how do you automatically resize for example a textbox once you have resized your form? Thank you for your help. :) - Paul :) Quote
Administrators PlausiblyDamp Posted June 23, 2004 Administrators Posted June 23, 2004 Easiest way to get a control to resize is to set it's anchor property, this will allow you to fix your control's position / size in respect to it's container. Why would you want to display scrollbars if there is nothing outside the form? If you really do need this then you would probably have to set the Form's AutoScroll property to false and place your own scrollbars on the form. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
pgabion Posted June 23, 2004 Author Posted June 23, 2004 Easiest way to get a control to resize is to set it's anchor property, this will allow you to fix your control's position / size in respect to it's container. Why would you want to display scrollbars if there is nothing outside the form? If you really do need this then you would probably have to set the Form's AutoScroll property to false and place your own scrollbars on the form. Thanks for the reply... we can now resize the form with its controls attached. :) With regards to the scrollbar... just like Word. When you start a Word document, the scrollbar is visible, but it's thumbs (up-down buttons in the scrollbar) are disabled. We would like also to do that in our program. Is there any way without putting a scrollbar control??? :confused: Thanks again!!! :) Quote
Administrators PlausiblyDamp Posted June 23, 2004 Administrators Posted June 23, 2004 If your form is going to contain something like a textbox then you could just make the default textbox size slightly taller than the form it's in. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.