Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Controls Always Centered

Reply
Thread Tools

Controls Always Centered

 
 
Ryan Wade
Guest
Posts: n/a
 
      10-04-2004
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
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      10-04-2004
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" <> wrote in message
news:1df001c4aa31$a89d5860$...
> 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



 
Reply With Quote
 
 
 
 
Lloyd Sheen
Guest
Posts: n/a
 
      10-04-2004
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]" <> wrote in message
news:ebm%...
> 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" <> wrote in message
> news:1df001c4aa31$a89d5860$...
>> 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

>
>



 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      10-04-2004
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" <> wrote in message
news:A5adnXtr16ZGHPzcRVn-...
> 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]" <> wrote in message
> news:ebm%...
>> 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" <> wrote in message
>> news:1df001c4aa31$a89d5860$...
>>> 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

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
JFrame centered on the screen palmis Java 4 01-23-2006 08:48 AM
Content centered in JEditorPane! Why? Nico Java 0 05-13-2005 02:51 PM
Centered table =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= HTML 2 11-01-2003 03:49 PM
centered page width for text Andrew Emberson HTML 1 10-10-2003 07:57 PM
Centered? Samuël van Laere HTML 3 10-03-2003 08:25 AM



Advertisments