By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,336 Members | 2,307 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,336 IT Pros & Developers. It's quick & easy.

Auto Resize form elements

P: 32
Hi,

I have a form with two rich text boxes and two buttons. Some of the users want to be able to maximize and/or resize the form and have the rich text boxes resize to fit and the buttons always stay close to the right side border.

Any tips on how I could do this? Maximizing and resizing have already been enabled. The effect now is that when you resize smaller, the text boxes and buttons go out of sight (depending on which side you resize from). If you maximize or resize larger, they don't change at all.

Thanks,
Jason
Jun 9 '08 #1
Share this Question
Share on Google+
3 Replies


lotus18
100+
P: 866
Hi

If you are using vb .net, you can simply set the anchor property of each control tp define the edges of the container.

In vb 6.0 you can also do this under the form's resize event.

Rey Sean
Jun 10 '08 #2

P: 32
Hi,

Setting the anchors worked perfectly! Thank you so much for your help!

Thanks,
Jason
Jun 10 '08 #3

lotus18
100+
P: 866
Hi,

Setting the anchors worked perfectly! Thank you so much for your help!

Thanks,
Jason
Glad we could help


Rey Sean
Jun 11 '08 #4

Post your reply

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