BUG: TreeView fisplays node icons display after the images are removed from the ImageList (822480)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
SYMPTOMSYou may have a Windows Form with a TreeView control that is
associated with an ImageList control. This permits the display of icons next to
each node. The icons are positioned to the immediate left of the node text.
When you remove the image from the ImageList control, you can see that the
icons that are next to each node are not removed.CAUSEThis problem occurs because the Form is not repainted after
you remove the images from the ImageList. Therefore, images in the TreeView
control still appear.RESOLUTIONTo resolve the problem, close the Form designer, reopen the
Form, and then follow these steps:
- Close the Form designer.
- Click Yes to save to the form in
Microsoft Development Environment.
- In Solution Explorer, right-click
Form1.vb or Form1.cs, and then click
Open. You see that the images are removed from the TreeView
control.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbDesigner kbWindowsForms kbCtrl kbControl kbImgList kbTreeView kbbug KB822480 kbAudDeveloper |
---|
|