TreeView - Изменение стандартных свойств
With Me!TreeView1
.Style = tvwTreelinesPlusMinusText
.LineStyle = tvwRootLines
.Indentation = 240
.Appearance = ccFlat
.HideSelection = False
.BorderStyle = ccFixedSingle
.HotTracking = True
.FullRowSelect = False
.Checkboxes = False
.SingleSel = False
.Sorted = False
.Scroll = True
.LabelEdit = tvwManual
.Font.Name = "Tahoma"
.Font.Size = 10
End With
Или так:
Private Sub Form_Current()
Dim tv As TreeView
Set tv = Me!objTreeView.Object
tv.Font.Name = "Tahoma"
tv.Font.Size = 10
End Sub
При позднем связываниии так:
With Me.objTreeView
.Appearance = 0
.Style = 6
.LineStyle = 1
.Indentation = 480
.Appearance = 0
.HideSelection = False
.BorderStyle = 0
.HotTracking = False
.Checkboxes = False
.SingleSel = False
.Sorted = False
.Scroll = True
.LabelEdit = 1
.Font.Name = "Tahoma"
.Font.Size = 12
End With
|