473,837 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4458
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****@REMOV Ea-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.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: AC8DE753.ipt.ao l.com 172.141.231.83
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!tk2msftngp13 .
phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:169862
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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 programmaticall y.
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******** ******@cpmsftng xa07.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****@REMOV Ea-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.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: AC8DE753.ipt.ao l.com 172.141.231.83
Path:

cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!tk2msftngp13 . phx.gbl
Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:169862
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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****@REMOV Ea-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.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: AC99C267.ipt.ao l.com 172.153.194.103
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
phx.gbl!TK2MSFT NGP10.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:171865
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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 programmaticall y.
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******* *******@cpmsftn gxa07.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****@REMOV Ea-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.publi c.dotnet.langua ges.vb
>NNTP-Posting-Host: AC8DE753.ipt.ao l.com 172.141.231.83
>Path:

cpmsftngxa07.p hx.gbl!cpmsftng xa06.phx.gbl!TK 2MSFTNGP08.phx. gbl!tk2msftngp1 3

Nov 20 '05 #4


"Craig Vick [MSFT]" <cr*****@online .microsoft.com> wrote in message
news:JN******** ******@cpmsftng xa07.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****@REMOV Ea-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.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: AC99C267.ipt.ao l.com 172.153.194.103
Path:

cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 . phx.gbl!TK2MSFT NGP10.phx.gbl
Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:171865
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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 programmaticall y.
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******* *******@cpmsftn gxa07.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****@REMOV Ea-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.publi c.dotnet.langua ges.vb
>NNTP-Posting-Host: AC8DE753.ipt.ao l.com 172.141.231.83
>Path:


cpmsftngxa07.p hx.gbl!cpmsftng xa06.phx.gbl!TK 2MSFTNGP08.phx. gbl!tk2msftngp1 3

Nov 20 '05 #5

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

Similar topics

0
1541
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 clicks on a new row in the datagrid and tries to select or enter a new value in the combobox, the datagrid doesn't seem to register the change, so if the user tabs through the columns and onto the next row, the data is cleared and not saved Does...
1
2080
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 with autoscroll enabled. I have tried setting the control size normally, but end up only one out of the 2 required scrollbars. Cheers, Alex
1
1477
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 resize with it. How can I get the resizing grips to adjust when my control adjusts its size in the designer? Thanks, Jacob
15
1530
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", textbox3.text="3"...... Can I use some loop method to do this?
1
4093
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 to accomadate room for the tabs and borders. In fact they are the same size! Compare this to adding a Panel to a Form. Form.Size would be slightly
1
1325
by: jpezhil | last post by:
I Need User Control Example Programe Plz Help Me. Thanking U (For U'r Reply)
1
2031
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 Key (to decrease size), and Arrow Keys (to alter posistion of circle on screen). My program consists of a single form with six command buttons and a circle that I drew with the shape control. For each of the command buttons I have written a click...
3
998
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 addition , this could use ajaxulation. what is my solution? thanks
1
1961
by: Eng Teng | last post by:
How to control size of length in richtexbox per line ? Regards, Tee
0
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10870
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10563
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9392
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6998
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5845
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3123
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.