Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Mon, 23 May 2005 06:33:13 -0700,    group: microsoft.public.msdn.drgui.drguidotnet.discussion        back       


Treeview Trouble   
Hi all,

When I try to change the color & font of a node, selection doesn't fit the 
new text size then the text are truncated. Bug ? I try to refresh the 
treeview but without succes.

Thx.

    Public Sub ChangeColor(ByRef objTreeview As TreeView, ByRef myNode As 
TreeNode, ByVal action As ColorAction)
        If (Not (myNode Is Nothing)) Then
            If (action = ColorAction.Add) Then
                myNode.BackColor = ClBackSelectionOn
                myNode.ForeColor = ClForeSelectionOn
                myNode.NodeFont = New Font(objTreeview.Font.FontFamily, 
objTreeview.Font.Size, FontStyle.Bold)
            Else
                myNode.BackColor = ClBackSelectionOff
                myNode.ForeColor = ClForeSelectionOff
                myNode.NodeFont = New Font(objTreeview.Font.FontFamily, 
objTreeview.Font.Size, FontStyle.Regular)
            End If
            myNode.Expand()
            myNode.EnsureVisible()
        End If
    End Sub
date: Mon, 23 May 2005 06:33:13 -0700   author:   Frederic H

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us