Label text in bold gets cut off when the text alignment is 'right'

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
Just create a label as follows.
label1.Text = "labelW";
label1.TextAlign = ContentAlignment.MiddleRight;
label1.Font = new Font(label1.Font, label1.Font.Bold);

When this code is executed, the last letter 'W' gets cut off.
OS is Windows XP, graphics driver used is intel extreme graphics 6.13.10.3510.

Any inputs as why is it happening?

TIA,
RK
 
Doesn't cut for me (with similar drivers); is the size fixed or dynamic? Try
either increasing the width of the label or setting AutoSize = true;
Any use?

Marc
 
RK said:
Just create a label as follows.
label1.Text = "labelW";
label1.TextAlign = ContentAlignment.MiddleRight;
label1.Font = new Font(label1.Font, label1.Font.Bold);

When this code is executed, the last letter 'W' gets cut off.
OS is Windows XP, graphics driver used is intel extreme graphics
6.13.10.3510.

Set the control's 'FlatStyle' property to 'System'. This is a known
problem.
 
Herfried K. Wagner said:
Set the control's 'FlatStyle' property to 'System'. This is a known
problem.

Thanks. It worked. I have searched to find out if there are any known
issues. But I could not get the link which states it is a known bug.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top