473,395 Members | 1,622 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,395 software developers and data experts.

Change ClientSize need to change the Control Size?

It appears to me that if I change the Control's client size the controls
size does not change to agree with the new size.

Does it work like the VB6 ScaleWidth and ScaleHeight?
That is after I change the Clientsize does the display stay the same but the
number of units required to reference a given point changes?

Anyway, it appears to me that If I want to change to size of the control so
that the client size is some value, I need to take the size of borders etc
into acount and change the control's size (rather than changing the
control's clientsize directly). Is that true??

Thank in advance,
Cal
Nov 20 '05 #1
4 4431
Hi Cal,

It may depend on the control. I tried changing the ClientSize of a Form and
of a Button, and in both cases, the size changed to accomodate the new
ClientSize.

Craig,
VB .Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: " active" <ac****@REMOVEa-znet.com>
Subject: Change ClientSize need to change the Control Size?
Date: Sun, 4 Jan 2004 22:07:47 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <et*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: AC8DE753.ipt.aol.com 172.141.231.83
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!tk2msftngp13.
phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:169862
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

It appears to me that if I change the Control's client size the controls
size does not change to agree with the new size.

Does it work like the VB6 ScaleWidth and ScaleHeight?
That is after I change the Clientsize does the display stay the same but thenumber of units required to reference a given point changes?

Anyway, it appears to me that If I want to change to size of the control so
that the client size is some value, I need to take the size of borders etc
into acount and change the control's size (rather than changing the
control's clientsize directly). Is that true??

Thank in advance,
Cal

Nov 20 '05 #2
Thanks, I think the problem related to the fact that I had anchor set to
"none"

I guess I thought that would let me change position and size but it appears
that even if anchored I can change position programmatically.
I'm not sure what "none" is suppose to do. Do you know?

Thanks again,
Cal
"Craig Vick [MSFT]" <cr*****@online.microsoft.com> wrote in message
news:CZ**************@cpmsftngxa07.phx.gbl...
Hi Cal,

It may depend on the control. I tried changing the ClientSize of a Form and of a Button, and in both cases, the size changed to accomodate the new
ClientSize.

Craig,
VB .Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: " active" <ac****@REMOVEa-znet.com>
Subject: Change ClientSize need to change the Control Size?
Date: Sun, 4 Jan 2004 22:07:47 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <et*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: AC8DE753.ipt.aol.com 172.141.231.83
Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!tk2msftngp13. phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:169862
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

It appears to me that if I change the Control's client size the controls
size does not change to agree with the new size.

Does it work like the VB6 ScaleWidth and ScaleHeight?
That is after I change the Clientsize does the display stay the same but

the
number of units required to reference a given point changes?

Anyway, it appears to me that If I want to change to size of the control sothat the client size is some value, I need to take the size of borders etcinto acount and change the control's size (rather than changing the
control's clientsize directly). Is that true??

Thank in advance,
Cal


Nov 20 '05 #3
Hi Cal,

None should mean it's not anchored. In running some simple code with
buttons and labels, the anchoring doesn't affect the behavior. Are you
possibly setting the Dock property?

Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: " active" <ac****@REMOVEa-znet.com>
References: <et*************@tk2msftngp13.phx.gbl> <CZ**************@cpmsftngxa07.phx.gbl>Subject: Re: Change ClientSize need to change the Control Size?
Date: Sat, 10 Jan 2004 19:30:44 -0500
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uJ**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: AC99C267.ipt.aol.com 172.153.194.103
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP10.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:171865
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Thanks, I think the problem related to the fact that I had anchor set to
"none"

I guess I thought that would let me change position and size but it appears
that even if anchored I can change position programmatically.
I'm not sure what "none" is suppose to do. Do you know?

Thanks again,
Cal
"Craig Vick [MSFT]" <cr*****@online.microsoft.com> wrote in message
news:CZ**************@cpmsftngxa07.phx.gbl...
Hi Cal,

It may depend on the control. I tried changing the ClientSize of a Form

and
of a Button, and in both cases, the size changed to accomodate the new
ClientSize.

Craig,
VB .Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
>From: " active" <ac****@REMOVEa-znet.com>
>Subject: Change ClientSize need to change the Control Size?
>Date: Sun, 4 Jan 2004 22:07:47 -0500
>Lines: 16
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <et*************@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: AC8DE753.ipt.aol.com 172.141.231.83
>Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13

Nov 20 '05 #4


"Craig Vick [MSFT]" <cr*****@online.microsoft.com> wrote in message
news:JN**************@cpmsftngxa07.phx.gbl...
Hi Cal,

None should mean it's not anchored. In running some simple code with
buttons and labels, the anchoring doesn't affect the behavior. Are you
possibly setting the Dock property?

No.
The problem went away when I fix the anchoring.
Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: " active" <ac****@REMOVEa-znet.com>
References: <et*************@tk2msftngp13.phx.gbl> <CZ**************@cpmsftngxa07.phx.gbl>
Subject: Re: Change ClientSize need to change the Control Size?
Date: Sat, 10 Jan 2004 19:30:44 -0500
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uJ**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: AC99C267.ipt.aol.com 172.153.194.103
Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08. phx.gbl!TK2MSFTNGP10.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:171865
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Thanks, I think the problem related to the fact that I had anchor set to
"none"

I guess I thought that would let me change position and size but it appearsthat even if anchored I can change position programmatically.
I'm not sure what "none" is suppose to do. Do you know?

Thanks again,
Cal
"Craig Vick [MSFT]" <cr*****@online.microsoft.com> wrote in message
news:CZ**************@cpmsftngxa07.phx.gbl...
Hi Cal,

It may depend on the control. I tried changing the ClientSize of a Form

and
of a Button, and in both cases, the size changed to accomodate the new
ClientSize.

Craig,
VB .Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
>From: " active" <ac****@REMOVEa-znet.com>
>Subject: Change ClientSize need to change the Control Size?
>Date: Sun, 4 Jan 2004 22:07:47 -0500
>Lines: 16
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <et*************@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: AC8DE753.ipt.aol.com 172.141.231.83
>Path:


cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: metamedia | last post by:
How do I get a datagrid to register a data change from a custom control cell (combobox) I've got a Windows Application with a Windows Form Datagrid that has a custom combobox column. When the user...
1
by: Alexander Brown | last post by:
How can i fix the size of a control? I have a control which renders an image (using an overriden OnPaint). I want the control itself to never be resized as it will be placed inside a parent frame...
1
by: Jacob | last post by:
I'm working on custom control where a designer verb will snap the control to a preset size. I can set the control size perfectly and it will resize, however, the grip around the control dosn't...
15
by: Mike Chan | last post by:
Can I use some loop to change a series of control's properties at same time? for example. I have textbox1, textbox2, textbox3, ... If I want textbox1.text = "1", textbox2.text="2",...
1
by: vooose | last post by:
Consider adding a TabPage with size=(300,300) to a TabControl, then calling tabControl.ClientSize=tabPage.Size; You would think tabControl.Size must now be BIGGER than tabControl.ClientSize...
1
by: jpezhil | last post by:
I Need User Control Example Programe Plz Help Me. Thanking U (For U'r Reply)
1
by: perse981 | last post by:
Hi I need to know how, if even possible, to enable the user of my program to control the Size and Posisiton of the circle I have Drawn on the form by using the Enter Key (to increase size), Shift...
3
by: Fritz the Cat | last post by:
Hiya I need a control that will read the contents of a folder of 20 images. It will display the latest image, as well as numbers 1-20 , so that by clicking the number I will get a new image. in...
1
by: Eng Teng | last post by:
How to control size of length in richtexbox per line ? Regards, Tee
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.