Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8711551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:54:20+00:00 2026-06-13T04:54:20+00:00

I have a Label whose length changes as the program runs (the text is

  • 0

I have a Label whose length changes as the program runs (the text is modified). And I am trying to set side-by-side this Label and an PictureBox. To do so, I did put them into a FlowLayoutPanel.

The problem is then that the two elements are not vertically aligned: they have different height.

I did not find a VerticalAlign property in the FlowLayoutPanel nor did I manage to modify the height of my Label (changing the font size is not an option).

Any suggestion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:54:21+00:00Added an answer on June 13, 2026 at 4:54 am

    I’m not 100% clear on what you’re trying to accomplish, but I believe I found a way to get this to align how you want.

    1. Use a TableLayoutPanel, make it 2 columns, 1 row.
    2. Add a Label to the left cell, set it to Dock: Fill. Also set TextAlign: MiddleLeft.
    3. Add a PictureBox to the right cell. Set the Anchor to None.

    This should give you a label on the left and a PictureBox on the right that will always be vertically centered. Modify the properties of the TableLayoutPanel according to your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a label and this code: string User = Environment.UserName; toolStripStatusLabel1.Text = This
I have a template field in a gridview with a label whose text I
I have an element whose html is like : <div class=gwt-Label textNoStyle textNoWrap titlePanelGrayDiagonal-Text>Announcements</div>
I have a label whose mouseover event opens up a popup. I am trying
i have a page layout like this <input id=name class=mandotary type=text> <label for=name>Name must
I have a Label, whose content is displayed by a while loop. when i
i have a label tag and i want to remove text between <label> </label>
I have a label which labels the line numbers based on the text on
I have a label in my form. I want this label to dynamically change
I have a label that is sometimes empty. How do I set up a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.