M Mufasa Sep 10, 2008 #1 How can I set the text for a specific node to be strikeout? It's there but it's read only. TIA - Jeff.
How can I set the text for a specific node to be strikeout? It's there but it's read only. TIA - Jeff.
H Herfried K. Wagner [MVP] Sep 10, 2008 #2 Mufasa said: How can I set the text for a specific node to be strikeout? It's there but it's read only. Click to expand... Dim f As New Font( _ Me.TreeView1.Font, _ Me.TreeView1.Font.Style Or FontStyle.Strikeout _ ) For i As Integer = 1 To 10 Dim tn As New TreeNode() tn.Text = "Item " & i If i Mod 2 = 0 Then tn.NodeFont = f End If Me.TreeView1.Nodes.Add(tn) Next i ///
Mufasa said: How can I set the text for a specific node to be strikeout? It's there but it's read only. Click to expand... Dim f As New Font( _ Me.TreeView1.Font, _ Me.TreeView1.Font.Style Or FontStyle.Strikeout _ ) For i As Integer = 1 To 10 Dim tn As New TreeNode() tn.Text = "Item " & i If i Mod 2 = 0 Then tn.NodeFont = f End If Me.TreeView1.Nodes.Add(tn) Next i ///
P Poonam Sharma Sep 12, 2008 #3 Herfried, use the following syntax: Dim f As Font = New Font(Me.treeView1.Font.FontFamily, 12, FontStyle.Strikeout) treeView1.Nodes(1).NodeFont = f
Herfried, use the following syntax: Dim f As Font = New Font(Me.treeView1.Font.FontFamily, 12, FontStyle.Strikeout) treeView1.Nodes(1).NodeFont = f
P Poonam Sharma Sep 12, 2008 #4 Mufasa, syntax is: Dim f As Font = New Font(Me.treeView1.Font.FontFamily, 12, FontStyle.Strikeout) treeView1.Nodes(1).NodeFont = f
Mufasa, syntax is: Dim f As Font = New Font(Me.treeView1.Font.FontFamily, 12, FontStyle.Strikeout) treeView1.Nodes(1).NodeFont = f