I have about ten Subs that I would like to incorprate into a treeview. I want to create a UDT that would contain all of the functions related information.
Is there a way to assign a tool tip to a node and not just to the treeview?
Can you call a dynamically assigned SubProcedure such as:
Is this a good way of setting this up?Code:Call MiscProcedures(i).Name
Code:Type SubProcedureInfo Name As String 'The VB name to run the Sub CommonName As String 'The name that will show up in the treeview list Description As String 'To placed in the treeview tool tip Catagory As String 'What type of Sub is it End Type Dim MiscProcedures() As SubProcedureInfo 'Set up MiscProcedures depending on how many Subs you have Private Sub Form_Initialize() ' Loop through all of the subs For i = 0 to Ubound(MiscProcedures) Set NewNode = Me.tvFunctions.Nodes.Add(, , _ MiscProcedures(i).Catagory, _ MiscProcedures(i).CommonName) Next i End


Reply With Quote