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

Dock & Anchor question

This maybe a very simple question, but i can't find the answer.
I placed a button dead center in the middle of the form. How do I
anchor it (or dock it or whatever), so that it always remains in the
middle of the form, regardless of how I resize the form?

Can the anchor property be of help, of do I have to do it manually in
response to form_resize?
Nov 21 '05 #1
2 1381
"Frank Rizzo" <no****@nospam.com> schrieb:
I placed a button dead center in the middle of the form. How do I
anchor it (or dock it or whatever), so that it always remains in the
middle of the form, regardless of how I resize the form?


Set its 'Anchor' property to 'None'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
Herfried K. Wagner [MVP] wrote:
"Frank Rizzo" <no****@nospam.com> schrieb:
I placed a button dead center in the middle of the form. How do I
anchor it (or dock it or whatever), so that it always remains in the
middle of the form, regardless of how I resize the form?

Set its 'Anchor' property to 'None'.

Thank you. How simple & brilliant.
Nov 21 '05 #3

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

Similar topics

2
by: Will | last post by:
(My 4 questins at end after explination) The code below was provided to me to "Popup" a window explaining what a Credit Card Verification Number is and where to find it on a card... it is used as...
2
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...
4
by: Keith Smith | last post by:
By looking at the properties of my control (tabControl) it looks like I have the choice of docking the size to my form on either one sigle side (left, right, top, bottom) or all sides (fill). Is...
2
by: sklett | last post by:
I'd like to introduce a gutter or deadspace between my docked controls on a form. I've sent the Form's padding to 5 for all, but the controls still align right against each other. I could add a...
3
by: marfi95 | last post by:
My application consists of basically a treeview on the left side, along with a panel control that takes up the right side. When nodes are clicked on the left, the data on the right side 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: Rotsey | last post by:
Hi, I have not had a good answer to this question. I put a menustrip on a form and so it is a main menu in affect. Now I put a webbrowser control on the form and set it dock fill. Of...
12
by: Rotsey | last post by:
Hi, I have not had a good answer to this question. I put a menustrip on a form and so it is a main menu in affect. Now I put a webbrowser control on the form and set it dock fill. Of...
3
by: Bobby Edward | last post by:
The FAQs on my site are going to be dynamically generated from 2 data tables... "one table": FaqCategories: FaqCategoryId, FaqCategory "many table": Faqs: FaqId, FaqCategoryId, Question,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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...
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...

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.