• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 667
  • Last Modified:

Status strip label placement

Hi Experts,

I have placed a status strip on my From and I have added two labels to it. I now want to place the label along the tool strip but can not find how to do so. They left align by default but I would like to place them where I want. For example label1 placed 100 pixels from the left and label2 300 pixels from the left.
1 Solution
Éric MoreauSenior .Net ConsultantCommented:
just add a label of 100 pixels wide that you will not used as a spacer
Julian HansenCommented:
Set the AutoSize property to false
Set the size to 100,Height
Set TextAlign property to right.

This might not make it exactly 100px because of the size of the font so you would need to account for that. You can work this out by adding the label and then checking in the properties for what the autosize width is (before you change the AutoSize property) - you can then use that value to work out the rest.

Using the above do the same for the second label taking into account width of first label etc.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now