Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement