473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Controls Always Centered

If the user resizes IE I want the webform controls to be
automatically repositioned in the center of the form. How
can I accomplish this?

Ryan
Nov 18 '05 #1
3 1344
Make sure you're using FlowLayout for your web form's PageLayout property.
Then select the controls in design view and click the standard center button
on the toolbar that looks just like the one in MS Word.
If you prefer to work in HTML mode you can surround the controls you want
centered with a basic tag such as this:
<center> This HTML is centered </center>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Ryan Wade" <an*******@discussions.microsoft.com> wrote in message
news:1d****************************@phx.gbl...
If the user resizes IE I want the webform controls to be
automatically repositioned in the center of the form. How
can I accomplish this?

Ryan

Nov 18 '05 #2
Just read your post. I am using VS2003 and in most cases selecting a
control (in this case an ImageButton) does not cause the center button to
become enabled. I could add the center tag but I have never gotten the IDE
to work with that correctly.

Lloyd Sheen

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eb****************@TK2MSFTNGP09.phx.gbl...
Make sure you're using FlowLayout for your web form's PageLayout property.
Then select the controls in design view and click the standard center
button on the toolbar that looks just like the one in MS Word.
If you prefer to work in HTML mode you can surround the controls you want
centered with a basic tag such as this:
<center> This HTML is centered </center>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Ryan Wade" <an*******@discussions.microsoft.com> wrote in message
news:1d****************************@phx.gbl...
If the user resizes IE I want the webform controls to be
automatically repositioned in the center of the form. How
can I accomplish this?

Ryan


Nov 18 '05 #3
You may need to select a group of controls.
Either of the techniques I've mentioned should work, but may take a little
tinkering depending on the complexity of your web form layout.
Don't give up so quickly.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:A5********************@rogers.com...
Just read your post. I am using VS2003 and in most cases selecting a
control (in this case an ImageButton) does not cause the center button to
become enabled. I could add the center tag but I have never gotten the
IDE to work with that correctly.

Lloyd Sheen

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eb****************@TK2MSFTNGP09.phx.gbl...
Make sure you're using FlowLayout for your web form's PageLayout
property.
Then select the controls in design view and click the standard center
button on the toolbar that looks just like the one in MS Word.
If you prefer to work in HTML mode you can surround the controls you want
centered with a basic tag such as this:
<center> This HTML is centered </center>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Ryan Wade" <an*******@discussions.microsoft.com> wrote in message
news:1d****************************@phx.gbl...
If the user resizes IE I want the webform controls to be
automatically repositioned in the center of the form. How
can I accomplish this?

Ryan



Nov 18 '05 #4

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

Similar topics

0
1936
by: VRandy | last post by:
Example: http://pages.prodigy.net/randyv/centerprb.htm The desired effect is a fixed width left margin with a fixed width div centered in the right side. If the browser is resized to become very...
4
7936
by: metalseb | last post by:
Hi folks I built up a small website which is designed for 800x600 display. Runs just fine in this resolution but if you have a system in 1024 or 1280 pixels wide, the site just "sticks" in the...
2
5475
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
4
9721
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
17
2245
by: Stian Lund | last post by:
Hello, I've been struggling with this problem for a while now, so I though I'd get some input from anyone more skilled with CSS than I am. I'm actually trying to accomplish two things with this:...
0
1354
by: jesse.hartwick | last post by:
Hi all. I'm designing a program that has to run on multiple resolutions and I'm having trouble with moving contols on the form. The way I have it now, the form is maximized on load, and the...
3
1364
by: jonefer | last post by:
I tried all sorts of key combinations. How do I precisely move controls, such as labels or textboxes with the arrow keys? I notice that new labels or boxes only have 2 handles on them, -...
9
2503
by: Troy Piggins | last post by:
If I use the code: ----- <div style="text-align: center;"> <a href="photos.php?img=xx1.jpg"> <img src="xx1.jpg" style="padding: 10px;" /> </a> <a href="photos.php?img=xx2.jpg">
9
2043
by: Chris Saunders | last post by:
This is not actually a C# question but I'm not sure which newsgroup is appropriate for this question. My apologies if I'm being "off-topic". I'm writing and application that has a group box...
0
7171
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...
0
7388
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,...
1
7114
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...
0
7541
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...
0
5693
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,...
0
3240
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...
0
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1607
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 ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.