469,303 Members | 1,980 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

VB5:Where to set ClientHeight and ClientWidth properties?

BT
Hi.

I like to know where and how do you set the ClientHeight and ClientWidth
properties? I can see Height,Width,Top,Left in the Properties window.

Any suggestion would be very helpful.

Thank you,
-BT
Jul 17 '05 #1
3 6913
Are you referring to the Screen.Width and Screen.Height properties? If so,
I recommend you use the GetSystemMetrics API instead, since running an app
such as MSN desktop sharing will totally screw up these dimensions in the
Screen object.
Mauro

"BT" <cr********@hotmail.com> wrote in message
news:Xn*********************************@130.81.64 .196...
Hi.

I like to know where and how do you set the ClientHeight and ClientWidth
properties? I can see Height,Width,Top,Left in the Properties window.

Any suggestion would be very helpful.

Thank you,
-BT

Jul 17 '05 #2
Clientheight amd ClientWidth can't be set, they can only be read.

What are you aiming to do, perhaps there's another way without using
clientheight and clientwidth?

--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs

"BT" <cr********@hotmail.com> wrote in message
news:Xn*********************************@130.81.64 .196...
Mauro,
I am referring to the ClientHeight and ClientWidth properties related to
form properties.

Any suggestions??

"Mauro" <mb******@hotmail.com> wrote in
news:VU**********************@news2.calgary.shaw.c a:
Are you referring to the Screen.Width and Screen.Height properties?
If so, I recommend you use the GetSystemMetrics API instead, since
running an app such as MSN desktop sharing will totally screw up these
dimensions in the Screen object.


Mauro

"BT" <cr********@hotmail.com> wrote in message
news:Xn*********************************@130.81.64 .196...
Hi.

I like to know where and how do you set the ClientHeight and
ClientWidth properties? I can see Height,Width,Top,Left in the
Properties window.

Any suggestion would be very helpful.

Thank you,
-BT


Jul 17 '05 #3
On Thu, 03 Jul 2003 19:29:15 GMT, BT <cr********@hotmail.com> wrote:
Hi.

I like to know where and how do you set the ClientHeight and ClientWidth
properties? I can see Height,Width,Top,Left in the Properties window.

Any suggestion would be very helpful.


ClientHeight and ClientWidth are ScaleHeight and ScaleWidth in VB

You do not change those to resize a control
- fiddling with them just changes the ScaleMode

Assuming the internal scale mode = the container's scalemode :-

Me.Width = BorderWidth + Me.ScaleWidth

=> BorderWidth = Me.Width - Me.ScaleWidth

Me.Width = BorderWidth + DesiredScaleWidth
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bob Kochem | last post: by
9 posts views Thread by Woof-Woof | last post: by
77 posts views Thread by Tark Siala | last post: by
SammyB
1 post views Thread by SammyB | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.