Tag Archives: owner-drawn ListBox

Make an owner-drawn ListBox that justifies columns in C#

This example shows how you can use an owner-drawn ListBox to left and right align values in columns. The following examples show different ways to align values in columns. Draw aligned columns of data in C# Format values in a … Continue reading

Posted in controls, fonts, graphics, lists, user interface | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Make an owner-drawn ListBox with pictures in C#

This example extends the previous one Make an owner-drawn ListBox in C# to make an owner-drawn ListBox with pictures. The program uses the following Planet class to represent information about the planets. class Planet { public string Name = “”; … Continue reading

Posted in controls, graphics | Tagged , , , , , , , , , , , | 3 Comments

Make an owner-drawn ListBox in C#

This example shows how you can make an owner-drawn ListBox. Normally a ListBox displays a textual representation of its objects, but you can change that behavior to make it display anything you can draw. This example displays some multi-line text … Continue reading

Posted in controls, fonts, graphics | Tagged , , , , , , , , , , | 4 Comments