Results 1 to 6 of 6

Thread: [RESOLVED] Tree View Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Wellington NZ
    Posts
    153

    Resolved [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.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Tree View Help

    I assume relatedForm has already been initialized and everything...

    perhaps try calling relatedForm.Activate and then relatedForm.Focus() ?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Wellington NZ
    Posts
    153

    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.

  4. #4
    Addicted Member
    Join Date
    Apr 2004
    Location
    Lagos, Nigeria
    Posts
    215

    Re: Tree View Help

    Is the application using an MDI form?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Wellington NZ
    Posts
    153

    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.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Wellington NZ
    Posts
    153

    [Resolved] Tree View Help

    Very nice solution found here....

    Thanks

    http://weblogs.asp.net/justin_rogers.../20/76915.aspx
    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
  •  



Click Here to Expand Forum to Full Width