[Visual Basic] Public Function Load_ParentElemente( _
ByVal vertragspartnernr As Integer, _
ByVal Parentid As Integer, _
ByRef Tree As TreeView _
) As Object
[Visual Basic] Public Function Load_ParentElemente(ByVal vertragspartnernr As Integer, ByVal Parentid As Integer, ByRef Tree As TreeView)
Dim dt As New DataTable
fnt_Strikeout = New System.Drawing.Font(Tree.Font.FontFamily, Tree.Font.Size, FontStyle.Strikeout)
fnt_normal = New System.Drawing.Font(Tree.Font.FontFamily, Tree.Font.Size, FontStyle.Regular)
Dim tn As New TreeNode
dt = Me.Get_SubStruktur(0, vertragspartnernr, 1)
Tree.ShowLines = True
Tree.ShowRootLines = False
Tree.SuspendLayout()
Tree.Visible = True
Tree.Nodes.Clear()
tn = Tree.Nodes.Add("--- kein übergeordnetes Element ---")
tn.Tag = 0
Me.Update_Node(dt, Tree)
Tree.ExpandAll()
Tree.SelectedNode = Me.FindNode(Tree.Nodes, Parentid, "")
End Function
Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition