?
Solved

Centering the text in a listbox

Posted on 2005-03-31
2
Medium Priority
?
249 Views
Last Modified: 2010-04-16
Hi,

Does anyone how to center the text, short of making an owner drawn listbox?

Thanks.
0
Comment
Question by:ba272
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
melodiesoflife earned 1500 total points
ID: 13677284
With owner draw listbox, you can do everything: center the text, sort ....
here is a good example about onwer draw listbox:

http://www.codeproject.com/cs/combobox/glistbox.asp
0
 

Author Comment

by:ba272
ID: 13677350
Thanks.  I was hoping for something short of an owner drawn list, buth thanks for the article.  Looks like I'm back in the owner drawn list bus.

Thanks.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question