473,383 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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 7219
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob Kochem | last post by:
Can someone point me at a tutorial or other reference on how VB 5 &/or 6 consumes memory and what its limits are? I have a program in VB5 that has been around a while and grown quite a bit. I...
1
by: Mr Chat | last post by:
Hello all I am trying to write a specialist outlining tool, using the TreeView control (in VB5 running on W95). It has gone quite well so far. I have found some very useful info on how to...
9
by: Woof-Woof | last post by:
Why doesn't my mouse wheel work in the code windows in VB5 under XP? I can scroll the properties and project windows using the wheel, but not the actual code windows (XP). Everything works fine...
77
by: Tark Siala | last post by:
hi i working with TreeView in VB6, and have good Properity Named (Key) with the Key i can goto Any Node i know hes Key. but in VB.NET i can find the Key :( please tell me where i can find the...
7
by: Tracks | last post by:
I have old legacy code from vb5 where data was written to a file with a variant declaration (this was actually a coding error?)... in vb5 the code was: Dim thisdata as integer Dim thatdata...
16
by: bartj1 | last post by:
Hi, I did a benchmark comparison of a National Instruments Active-x "Strip Chart" control in both Vb5 and vb.net(2005). The code is identical: For I = 1 to 10000 ARR(1,0) = J...
0
by: paulglen | last post by:
The wheel on my wheel mouse at home works PERFECT in the code window in VB5, but at work it doesn't work in the code window. It works in the properties window, but not the code. Can anyone tell me...
4
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
1
SammyB
by: SammyB | last post by:
A friend of mine is still using VB5 and has a problem. He writes: Does anyone still remember VB5 and have a clue? TIA --Sam
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.