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 8266765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:16:41+00:00 2026-06-08T05:16:41+00:00

I cannot find a property that would allow me to align text inside vb.net

  • 0

I cannot find a property that would allow me to align text inside vb.net combo box. Text Boxes have TextAlign Property, but Combo Box does not have that. Is there another property that is used by Combo Box? Or is there another way to do it?

Thanks

  • 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-08T05:16:44+00:00Added an answer on June 8, 2026 at 5:16 am

    If the combo’s DropDownStyle is set to DropDownList you can do it by owner drawing the items. To do that set its DrawMode property to OwnerDrawFixed and put something like this in the DrawItem event:

    If e.Index >= 0 Then
        Using st As New StringFormat With {.Alignment = StringAlignment.Far}
            e.Graphics.DrawString(sender.Items(e.Index).ToString, e.Font, Brushes.Black, e.Bounds, st)
        End Using
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem I cannot find a solution for: basically I would like how
I cannot find a dictionary entry by key. I have an interface like the
I have a class with a list property that seems to lose an element
I've come across a strange behaviour in .NET/Reflection and cannot find any solution/explanation for
I have googled everywhere for this solution and cannot find anything! I want to
I have a problem with reflection. I need to find the type that instantiates
I have an linq expression that is meant to pass a property around to
I've searched google and cannot find any answers to the particular problem. I have
I often find myself writing a property that is evaluated lazily. Something like: if
I have a JSF ManagedBean which has a property that should be set by

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.