Z
zobalee
I have a multi-form application that uses a treeview for navigation, which
checks the NodeMouseClick event and simply issues these commands:
theNewForm.Show() : Me.Hide()
....depending on the node the user clicks, of course.
My problem is that when the form is shown it doesn't have focus. Which
really means that the application doesn't have focus. I've tried to
explicitly code it to have focus, and even tried to code focus to one of the
form's controls, all to no avail.
It's weird, because when I issue the exact commands via "Next" and "Back"
buttons on the calling form, it works fine, i.e., the
application/form/control retains focus. My client understandably wants it to
work with both types of controls, so I need to fix this. Anyone have any
ideas why it works for one type of control (button) but not the other
(treeview)? Has anyone run into this problem?
Appreciatively,
Lee...
checks the NodeMouseClick event and simply issues these commands:
theNewForm.Show() : Me.Hide()
....depending on the node the user clicks, of course.
My problem is that when the form is shown it doesn't have focus. Which
really means that the application doesn't have focus. I've tried to
explicitly code it to have focus, and even tried to code focus to one of the
form's controls, all to no avail.
It's weird, because when I issue the exact commands via "Next" and "Back"
buttons on the calling form, it works fine, i.e., the
application/form/control retains focus. My client understandably wants it to
work with both types of controls, so I need to fix this. Anyone have any
ideas why it works for one type of control (button) but not the other
(treeview)? Has anyone run into this problem?
Appreciatively,
Lee...