Tag Archives: icons

Display database pictures in a ListView control in C#

This example shows how you can display database pictures in a ListView control. My previous post, Create ListView icons at run time in C#, explained how to make images at runtime to display in a ListView control. This example follows … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , , , , , , , , , , , | 9 Comments

Create ListView icons at run time in C#

The example Display large and small ListView icons in C# explains how to display ListView icons next to items. Basically, you place the images in two ImageList controls, set the ListView control’s LargeImageList and SmallImageList properties to those two controls, … Continue reading

Posted in controls, drawing, graphics | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Display icons next to ListView sub-items in C#

This example displays icons next to ListView sub-items when the ListView is in Detail View. This requires two steps beyond what is required to make a ListView display item icons: (1) assigning image indices to the sub-items, and (2) making … Continue reading

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

Display large and small ListView icons in C#

You can display two sizes of ListView icons. When the control’s View property is LargeIcon or Tile, the control displays large icons. When the View property is SmallIcon, List, or Details, the control displays small icons. The control gets its … Continue reading

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

Make a Windows Forms application display icons at appropriate sizes in C#

Setting a form’s icon is easy. Simply select the form in the Form Editor and set its Icon property. Windows uses this icon in many different ways. For example, it displays a small icon in the form’s upper left corner … Continue reading

Posted in forms, graphics | Tagged , , , , , , , , , | 2 Comments

Display the predefined system icons in C#

This example displays the available system icons. The following DrawIconSample method displays an icon and its name. private const int column_width = 150; private const int row_height = 50; // Draw a sample and its name. private void DrawIconSample(Graphics gr, … Continue reading

Posted in graphics, system | Tagged , , , , , , , , , , , , , , , , , | 2 Comments