PRB: Windows Forms TreeView Control Does Not Handle State Image Lists in Visual Basic .NET (315934)
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 Q315934 For a Microsoft Visual C# .NET version of this
article, see
313134. SYMPTOMS The Windows Forms TreeView control displays a hierarchy of nodes that is 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: | kbWindowsForms kbTreeView kbGDI kbCtrl kbprb KB315934 kbAudDeveloper |
---|
|