General information
Category:
Coding, syntax & commands
This could be an activex issue. try changing focus from the activex treeview control to some other control on your form, and then calling the non-modal form. If the treeview doesn't have focus, it may not ask for it back.
>2nd form is (and must remain) non-modal - thanks for suggestion
>Ken
>
>>Make sure the second form is modal, and executing in the calling form will pause while the modal form is displayed.
>>
>>
>>>Hello all,
>>>
>>>I have a "lookup" form that uses a treeview to drill down to a record. The idea is that the user can click on the record when they see it in the tree and this will bring up another form where they can edit the record. All works fine except that after the second form comes up - focus always goes back to the form with the treeview.
>>>
>>>The code is in the "NodeClick" method of the treeview. No amount of trying to Show or set focus to the 2nd form seems to make it stick - I always end up back on the treeview form. Note that doing the same thing from a simple command button on the tree form works correctly - leaving focus on 2nd form.
>>>
>>>Ideas?
>>>
>>>Thanks! Ken
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only