PRB: Cannot Assign Images to a ColumnHeader Control in a Windows Forms ListView Control Using Visual Basic .NET (316202)
The information in this article applies to:
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
This article was previously published under Q316202 For a Microsoft Visual C# .NET version of this
article, see
314933. SYMPTOMS When you attempt to assign images to a ColumnHeader control in a Windows Forms ListView control, the operation is unsuccessful. CAUSE This behavior occurs because the .NET implementation of the
System.Windows.Forms.ColumnHeader class does not allow you to assign an image to the ColumnHeader control. You can assign only text to a ColumnHeader control. RESOLUTION To work around this issue in a .NET Windows Forms
application, use Interop Services to send messages to the underlying Win32 ListView control to direct it to add the images to specific columns.
Modification Type: | Major | Last Reviewed: | 3/24/2004 |
---|
Keywords: | kbWindowsForms kbListView kbCtrl kbprb KB316202 |
---|
|