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

Dynamically change a form's height

P: n/a
Hello experts,
I have a little problem here:

In my project, I have a form that contains a limited (but unspecified)
number of dynamically created controls, which are all placed along a
vertical axis.

Therefore, I need to determine this form's height, to make it fit all
controls.

The form's Height value depends on Window's style (XP has a thicker bar than
W2K), and the ScaleHeight value is readonly in runtime.

Is there a way to do this?
Thanks in advance!
Ramon.
Jun 29 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sorry,

I posted it on the wrong NewsGroup...


"Ramon" <it******@zonnet.nl> wrote in message
news:44***********************@news.xs4all.nl...
Hello experts,
I have a little problem here:

In my project, I have a form that contains a limited (but unspecified)
number of dynamically created controls, which are all placed along a
vertical axis.

Therefore, I need to determine this form's height, to make it fit all
controls.

The form's Height value depends on Window's style (XP has a thicker bar
than W2K), and the ScaleHeight value is readonly in runtime.

Is there a way to do this?
Thanks in advance!
Ramon.

Jun 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.