|
-
May 22nd, 2006, 08:47 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Tree View Help
Hi, I have a treeview with a series of different nodes.
Each node has an additional property that points to a related form, when i select a node i want to activate the related form.. Which event should i use?
When i use the AfterSelect event i call relatedForm.Activate(), however this causes the form with the tree node to still remain active. I think that this is because the mouse click re-activates the form. Is there a way to stop this, i.e cancel any mouse event?
Thanks
Rohan
You dont need eyes to see, you need vision.
-
May 22nd, 2006, 08:49 AM
#2
Re: Tree View Help
I assume relatedForm has already been initialized and everything...
perhaps try calling relatedForm.Activate and then relatedForm.Focus() ?
-
May 22nd, 2006, 08:57 AM
#3
Thread Starter
Addicted Member
Re: Tree View Help
Yep, every thing has been initialised correctly, i have tried calling relatedForm.Focus(), it doesn't work. When the form it activated it just flickers and returns control to the main form...
You dont need eyes to see, you need vision.
-
May 22nd, 2006, 01:40 PM
#4
Addicted Member
Re: Tree View Help
Is the application using an MDI form?
-
May 23rd, 2006, 02:44 AM
#5
Thread Starter
Addicted Member
Re: Tree View Help
The applications isn't an mdi environment, each node has a reference to a form, and when the node is selcted the form is Activated... still haven't been able to fix this one.
Rohan
You dont need eyes to see, you need vision.
-
May 23rd, 2006, 10:14 AM
#6
Thread Starter
Addicted Member
[Resolved] Tree View Help
You dont need eyes to see, you need vision.
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
|