|
-
Aug 12th, 2000, 04:53 AM
#1
Thread Starter
Member
I need to cycle through all my open forms and update the Treeview to reflect changes I have made in any one of the other forms. i.e. if I move a node on instance(1) of Form1 I need the other instances of that form to update their Treeview to look the same. I tried the following code but it doesn't work !!!
-----------------------------------------------------------
Public Sub ChangeParent(SelectedNode as Node,NewParentNode as Node)
Dim nNode As Node
Dim m_Form as Form
On Error GoTo ErrorTrap
For Each m_Form In Forms
If IsObject(m_Form.Controls("tvEquipView")) Then
Set nNode = m_Form.Controls("tvequipview").Nodes(SelectedNode).parent = NewParentNode.Key
End If
NextForm:
Next
Out:
Exit Sub
ErrorTrap:
If Err.Number = 730 Then Resume NextForm
MsgBox Err.Description, vbCritical + vbOKOnly
Resume 'Out
End Sub
-----------------------------------------------------------
Does anyone have any ideas. I think I may be looking for an API call to do what I need.
Forever hopeful.........
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|