Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetActiveForm Method
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01170863
Message ID:
01172693
Vues:
23
Kevin,

The form that is working correctly has the following class definition:

public class AssetForm : dstBusinessForm

The form that is not working correcty looks like this:

public class FilterForm : dstBusinessForm, IdstFilterObjectHost

Could this definition cause a problem with the GetActiveForm method?

Thanks,

Mat


>
>>I have 2 different forms, each with their own Toolbar. They share some of the same button subclasses that I have created. When I click the close button on one form's toolbar, the GetActiveForm method gets a reference to the correct form. When I click the same button on the second form, the GetActiveForm either gets null or a different form?
>>
>>I assume I am missing a setting somewhere, but I don't see the difference in the 2 forms. I call mmAppDesktop.MainForm.GetActiveForm() and when I step into the code, the property this.IsMdiContainer is true, but the property this.ActiveMdiChild is wrong.
>
>So these forms are two completely different classes? I may need to get on your comnputer and take a look.
>
>Best Regards,
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform