Information générale
Catégorie:
The Mere Mortals .NET Framework
I have a problem with the active form not being set.
I am using the mmNavigatoinToolStrip control as a component in a User Control for navigating around my data object.
I open a form (frmCompanies) using
mmAppDesktop.FormMgr.Show(new frmCompanies(_StoreKey, _StoreName), this);
In the frmCompanies form I open a frmContacts form using
frmContacts frmNew = new frmContacts();
mmAppDesktop.FormMgr.Show(frmNew, this);
When I use the navigation bar on the frmContacts form, the frmCompanies data changes. I have been chasing the problem and in the frmContacts form when I check the ActiveForm
mmAppDesktop.FormMgr.GetActiveBusinessForm().Name
I get "frmCompanies". Since the Navigation Tool Strip seems to be using the active form, this seems to be my problem. Any idea how I might be managing to NOT set the active form?
Thanks,
Jeff
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