473,586 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anchor Property

Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form, it doesn't grow with
it... What am I missing?

Thanks,
CJ
Nov 20 '05 #1
4 6955
I'm not quite sure what your talking about, can you be more specific.
"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form, it doesn't grow with it... What am I missing?

Thanks,
CJ

Nov 20 '05 #2
CJ,
The anchor property will keep the control anchored to that side.

Hence setting Anchor to Top & Left will keep the controll fixed to the Top &
Left side. It will not grow as you need to anchor the control to opposite
sides to make it grow.

If you set Anchor to Top, Left & Right, the control will grow as the form
gets wider, but not grow any higher.

Setting Anchor to Top, Left, Right, and Bottom, the control will grow in
both width & height.

The Dock property set to Fill, will effectively causes the control to be
anchored to the edges with no space between the control & the edge.

Hope this helps
Jay

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form, it doesn't grow with it... What am I missing?

Thanks,
CJ

Nov 20 '05 #3
Hello,

"CJ Taylor" <no****@blowgoa ts.com> schrieb:
Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form,
it doesn't grow with it... What am I missing?


You may want to set it to 'Right' and 'Bottom' too...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
yeah I got it. Thanks again everyone, pardon my dumb question.

-CJ
"Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hello,

"CJ Taylor" <no****@blowgoa ts.com> schrieb:
Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form,
it doesn't grow with it... What am I missing?


You may want to set it to 'Right' and 'Bottom' too...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #5

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

Similar topics

6
27640
by: Daniele Baroncelli | last post by:
Hi guys, I would like to change the text in an anchor. es. from <a id="idanchor">oldtext</a> to
2
8068
by: James | last post by:
I have a forms application which has many controls such as buttons,labels,listviews,text boxes etc. If you set the window size to maximum size so that it would expand to the size of the screen the controls tend to move without any proposion. So then I used anchor and the dock property. I could get some or most of them to appear correctly, but...
6
6647
by: Richard Brown | last post by:
Ok, I celebrate and rejoice in the Anchor property. So wonderful compared to the horrible 'resize' code I had to write in VB6, there is just no end to the wonders of VB.NET..... uh, ok..... BUT... I have a form with a lot of controls side by side, etc. The Anchor is really only useful to resize 1 control on each line (and move all the...
0
1251
by: James | last post by:
I have a composite custom control which is constructed of several other controls, such as command buttons, a listview etc. I have several controls which border the boundary of the container and have their anchor properties set accordingly, for example, ensuring a button stays on the right border when the control is resized. Now in the control's...
3
3845
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 hyperlink control and you assign the navigateurl property = "../#anchor" whereby you want to add this # reference to the current url the url ends up with...
10
2693
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. Thanks so much for reading about my problem! H
2
5275
by: jh | last post by:
I am trying to create a simple mdi app with a form anchored down the left of the main form. In this "menu button" form I will have various buttons etc. (i.e. similar to lots of websites) However i cannot seem to achieve this. I have created an mdi parent, created another form and set its MdiParent property to the parent. In the parents...
5
1739
by: Randy Webb | last post by:
The list below has the current section number, proposed anchor name, and then the current title of that section. Some make sense, some don't. There are a few that don't have proposed anchor names yet as I couldn't come up with a decent anchor name. Some anchor names are duplicated (#ajax is one), where the idea would be to combine those...
3
4515
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 runtime control to anchor properly? Second -- the program I'm writting is supposed to look like a dos application (long story). When the application...
0
7839
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...
1
7954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
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...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
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...

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.