469,643 Members | 1,452 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

dynamically resizing forms

Hi all,
I dynamically create new controls and display them on the form. My
problem is that the user has to resize form manually to see controls whose
location property points to a point outside the form's area. So can you
please show me a way to resize the form after adding a dynamic control so
whose Location points to a point outside the form's boundary. So that the
control can be displayed without resizing the form manually?

Thanks...
Nov 15 '05 #1
1 4619
Hi Nikhil,

Just as your Controls have a Size property, so does a Form. Simply
calculate the new width and height and set the Size.

Another approach is to set the AutoScroll property of the Form to
True. Then, when a Control appears which is outside the bounds of the
window, scroll bars will appear.

Regards,
Fergus
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Jon Yeager | last post: by
11 posts views Thread by Sharon | last post: by
64 posts views Thread by Philip Potter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.