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

Anchor and scaling

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?
Jun 12 '06 #1
3 5224
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
Jun 12 '06 #2
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" <da***********@gmail.com> wrote in message
news:pb******************@tornado.ohiordc.rr.com.. .
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

Jun 12 '06 #3
It is not that intelligent, you have to code functionality like what you are
describing by yourself.

Simon.

"Daniel" <Da*****@vestryonline.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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" <da***********@gmail.com> wrote in message
news:pb******************@tornado.ohiordc.rr.com.. .
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


Jun 12 '06 #4

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

Similar topics

0
by: Colin | last post by:
Hi, It seems vs.net does some automatic scaling in the ide. like if i take a project develloped under 96 dpi low res and load it under 120 dpi hi res it does all kinds of automatic resizing. this...
1
by: susie_richie_30 | last post by:
Hi, I am trying to apply gray scaling to color as well as black/white images. I have tried using the pixel by pixel approach to achieve the scaling. But the particular approach has a issue with...
0
by: Steven | last post by:
Hello, I have a problem in scaling printing. I use standard print dialog. When I click the button of "Property" in this dialog, it shows the printer's property dialog. As usual, there is a...
0
by: Steven | last post by:
Hello, I have a problem in scaling printing. I use standard print dialog. When I click the button of "Property" in this dialog, it shows the printer's property dialog. As usual, there is a...
3
by: Larry Serflaten | last post by:
I am taking a 256 color bitmap from a file and scaling it up X 16 to a 32bppPARGB bitmap in memory. I copy that image to the screen. After scaling, the edges of all the lines and colors are...
3
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
10
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. ...
17
by: IanIpp | last post by:
We have a 3 month old quad processor/dual core server running SQL Server 2005 and already it is getting close to hitting the CPU wall. An 8 way CPU box is prohibitively expensive and out of the...
3
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.