Wordwrap for .NET Combo Boxes

Posted on 2004-11-09
Medium Priority
Last Modified: 2010-04-24
i have a windows application with rather long items(strings) in its i tems collection. i there any way i could wrap the words for these items to 2 lines if possible.
i am not a newbie so please dont waste time asking to many unnecessary quetion, just tell me if it can be done or not
Question by:Kanye486
LVL 96

Expert Comment

by:Bob Learned
ID: 12539645
The answer is maybe.  If you can do it with a ListBox, I don't see why you could do it with a ComboBox:

An editable multi-line listbox for .NET

LVL 86

Accepted Solution

Mike Tomlinson earned 750 total points
ID: 12539679
>> just tell me if it can be done or not

Yes.  Set the DrawMode to DrawMode.OwnerDrawVariable and then draw each string accordingly.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 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