PC Review


Reply
Thread Tools Rate Thread

Align autosize labels on the right

 
 
ZippyV
Guest
Posts: n/a
 
      15th Aug 2004
Hello everybody,

A couple of years ago I wrote a program in VB6. Using the designer I could
align my labels to the right. When the text of the labels would change, the
autosize feature would kick in and resize the lables to the left.
But with vb.net it isn't possible anymore to get the labels aligned right
using Format -> Align -> Right and stay like that at runtime.
I tried using the anchor, docking and tablelayout panel, but none of these
things work.
Does somebody know a better solution?


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      16th Aug 2004
Hi,

You will have to align the labels with code in the labels text
changed event.

Ken
-------------------
"ZippyV" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hello everybody,

A couple of years ago I wrote a program in VB6. Using the designer I could
align my labels to the right. When the text of the labels would change, the
autosize feature would kick in and resize the lables to the left.
But with vb.net it isn't possible anymore to get the labels aligned right
using Format -> Align -> Right and stay like that at runtime.
I tried using the anchor, docking and tablelayout panel, but none of these
things work.
Does somebody know a better solution?



 
Reply With Quote
 
ZippyV
Guest
Posts: n/a
 
      16th Aug 2004
Thanks, I was already afraid that would be the answer.

"Ken Tucker [MVP]" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Hi,
>
> You will have to align the labels with code in the labels text
> changed event.
>
> Ken
> -------------------
> "ZippyV" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Hello everybody,
>
> A couple of years ago I wrote a program in VB6. Using the designer I could
> align my labels to the right. When the text of the labels would change,

the
> autosize feature would kick in and resize the lables to the left.
> But with vb.net it isn't possible anymore to get the labels aligned right
> using Format -> Align -> Right and stay like that at runtime.
> I tried using the anchor, docking and tablelayout panel, but none of these
> things work.
> Does somebody know a better solution?
>
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      16th Aug 2004
Ken,

>
> You will have to align the labels with code in the labels text
> changed event.
>

Are you sure of that, I use the Anchor with success in this kind of
operations.

There should be something that I oversee in this question?

Cor


 
Reply With Quote
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      17th Aug 2004
Hi,

The anchor property only moves the control when the form is resized.

Ken
-----------------
"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
Ken,

>
> You will have to align the labels with code in the labels text
> changed event.
>

Are you sure of that, I use the Anchor with success in this kind of
operations.

There should be something that I oversee in this question?

Cor



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      17th Aug 2004
Ken,

For me it rezises when I set the top, left and right side.

Cor

> The anchor property only moves the control when the form is

resized.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How do I re-align labels which are out of alignment =?Utf-8?B?SGF6ZWxh?= Microsoft Word Document Management 1 22nd Nov 2007 03:48 PM
Labels help: how to align at the top? =?Utf-8?B?TmFuY3kgUQ==?= Microsoft Word Document Management 3 10th Jul 2005 10:17 PM
Labels don't align anymore =?Utf-8?B?cm9va19tdGw=?= Microsoft Word Document Management 0 29th Mar 2005 09:59 PM
Label.AutoSize and right-side align Christoffer Microsoft Dot NET Framework Forms 1 19th Nov 2004 03:52 PM
align labels on X axis HGood Microsoft Excel Charting 3 24th Aug 2004 03:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 AM.