Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 :)

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
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!!! :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...