Microsoft KB Archive/209079

= BUG: TreeView Properties Set in Design do not Work at Run-Time =

Article ID: 209079

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0

-



This article was previously published under Q209079



SYMPTOMS
If either the FontBold or FontItalic property is set to True at design-time, the text in the TreeView does not appear as either bold or italic at run-time.



RESOLUTION
If the FontBold or FontItalic property is set at run-time, the text in the TreeView displays correctly.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default. From the Project menu, choose Components. In the Components dialog box, click the Controls tab, then select the Microsoft CE TreeView Control 6.0. Add a TreeView control and a command button to Form1. Change the FontBold and FontItalic properties of the TreeView to True.  Paste the following code into the code module of Form1:

Option Explicit

Private Sub Command1_Click TreeViewCtl1.FontBold = Not TreeViewCtl1.FontBold TreeViewCtl1.FontItalic = Not TreeViewCtl1.FontItalic End Sub

Private Sub Form_Load Dim xNod Set xNod = TreeViewCtl1.Nodes.Add(, tvwFirst, "Parent", "Parent   Node") End Sub

 Run the program.</li></ol>

RESULTS: The node added to the TreeView does not appear as either bold or italic. However, clicking Command1 successfully sets these properties.

The expected behavior is that setting either the FontBold or FontItalic property to True at design-time would cause the text to appear as either bold or italic.

The same problem is exhibited with with the FontStrikethrough, FontUnderline and FontSize properties.

Additional query words: kbDSupport vbce vbce6 kbGrpVB

Keywords: kbbug kbtoolkit kbpending KB209079

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.