PC Review


Reply
Thread Tools Rate Thread

Anchor and scaling

 
 
Daniel
Guest
Posts: n/a
 
      12th Jun 2006
Hey guys

I acnhored my control to the bottom right corner of my form.

That when when i resize the form the control stays int he correct place.

The only problem is it doesn't resize the control , so the form gets smaller
and my control although in the right place remains too big.

How do i get the control to resize as well in proportion to the form its on?


 
Reply With Quote
 
 
 
 
Dan Manges
Guest
Posts: n/a
 
      12th Jun 2006
Daniel wrote:
> How do i get the control to resize as well in proportion to the form its on?
>


To get the control to resize with the form you'll have to anchor to both
sides (top/bottom, left/right, or all four). For example, if you anchor
to left and right your control will grow wider when the form resizes,
but not higher.

Dan Manges
 
Reply With Quote
 
Daniel
Guest
Posts: n/a
 
      12th Jun 2006
HI Dan

Thats what i did, anchored it to bottom right so that when resize from
bottom right it would work.

Tried your way and acnhored to all sides but now it resizes too much
compared to the window

"Dan Manges" <(E-Mail Removed)> wrote in message
newsbfjg.57458$(E-Mail Removed)...
> Daniel wrote:
>> How do i get the control to resize as well in proportion to the form its
>> on?

>
> To get the control to resize with the form you'll have to anchor to both
> sides (top/bottom, left/right, or all four). For example, if you anchor
> to left and right your control will grow wider when the form resizes, but
> not higher.
>
> Dan Manges



 
Reply With Quote
 
Simon Hart
Guest
Posts: n/a
 
      12th Jun 2006
It is not that intelligent, you have to code functionality like what you are
describing by yourself.

Simon.

"Daniel" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> HI Dan
>
> Thats what i did, anchored it to bottom right so that when resize from
> bottom right it would work.
>
> Tried your way and acnhored to all sides but now it resizes too much
> compared to the window
>
> "Dan Manges" <(E-Mail Removed)> wrote in message
> newsbfjg.57458$(E-Mail Removed)...
>> Daniel wrote:
>>> How do i get the control to resize as well in proportion to the form its
>>> on?

>>
>> To get the control to resize with the form you'll have to anchor to both
>> sides (top/bottom, left/right, or all four). For example, if you anchor
>> to left and right your control will grow wider when the form resizes, but
>> not higher.
>>
>> Dan Manges

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add anchor to url Aamir Ghanchi Microsoft ASP .NET 3 9th Jul 2007 04:12 PM
RunTime Control Anchor & Font Scaling Joseph Gruber Microsoft VB .NET 3 12th Jun 2007 01:23 PM
Anchor Matthias Heise Microsoft Dot NET Compact Framework 1 25th Apr 2005 01:42 PM
anchor tag =?Utf-8?B?Q2hhcmxpZSBK?= Microsoft Dot NET 1 25th Mar 2005 04:03 PM
Anchor <a name=... > tag Sunny Microsoft ASP .NET 8 2nd Jul 2004 06:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 AM.