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

Detect, at runtime, what .clientsize was at design time?

P: n/a
I'm writing code to resize controls on a Win Form. Is there any way to
detect (at runtime) what the form.clientsize was at design time?

Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies

P: n/a
Have you looked at the Anchor property of controls? It allows the control to
change shape depending on which of its side(s) are anchored!

--
|
+-- Thief_
|

"Mr. Analogy" <Mr*******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I'm writing code to resize controls on a Win Form. Is there any way to
detect (at runtime) what the form.clientsize was at design time?

Nov 21 '05 #2

P: n/a
Yes, but I need the shapes to all MOVE and RESIZE proportionatly.

So, it would look like you just zoomed the whole form. Anchoring
doesn't do that.

Nov 21 '05 #3

P: n/a
Figured it out :

If you put the code in the form's MyBase.New()
me.OldHeight=me.clientsize.height , etc.

Nov 21 '05 #4

P: n/a
Mr. Anology

In addition to Thief

I hardly recommend as well to use the Anchor and the Dock properties,
The Anchor does resize the controls if you use them well by the way.

This not because that it is impossible to get the screensize
This is for the primary screen

http://msdn.microsoft.com/library/de...creentopic.asp

I hope this helps,

Cor
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.