PRB: Windows Forms TreeView Control Does Not Handle State Image Lists in Visual C# .NET (313134)
The information in this article applies to:
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
This article was previously published under Q313134 This article references the following .NET Framework Class
Library namespaces:
- System.Windows.Forms
- System.Runtime.InteropServices
SYMPTOMS The Windows Forms TreeView control displays a hierarchy of nodes similar to the way that
Windows Explorer displays folders in the left pane. With the Windows Forms TreeView control, the application cannot use a State image list to display
a State icon. The State icon appears to the left of the icon that is displayed
for a node in the control. This behavior differs from the behavior of the
underlying Win32 TreeView control. RESOLUTION The .NET Windows Forms application can use Interop services
to direct the underlying Win32 TreeView control to display a State icon. To do this, the application can
assign a value to each field in the TVITEM structure and send a TVM_SETITEM
message to the underlying Win32 TreeView control through Interop services.
Modification Type: | Major | Last Reviewed: | 3/24/2004 |
---|
Keywords: | kbGDI kbprb kbWindowsForms KB313134 |
---|
|