Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using mmMessageBox
Message
 
À
19/04/2005 11:01:07
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01006205
Message ID:
01006663
Vues:
17
Lori,
zzFactoryDesktop WinFactory = (zzFactoryDesktop)Factory;  //error here
>However, this does not work. We are getting an error on the line I have noted, saying the specified cast is not valid. First off, can mmMessageBox be subclassed to change properties such as color, font, etc...? Second, are we going about this the correct way? If we are not doing it properly, how should this be done?

If you're getting a casting error on this line, it means that the Factory variable does not contain an instance of your zzFactoryDesktop class. You really shouldn't have to create a subclass of zzFactoryDesktop...you've already got an application-specific subclass in your project--Factory.cs/vb.

I took a look at what you were trying to do and realized I can make this easier for you by changing a few lines of code at the MM .NET level. If I gave you the source code, do you folks know how to recompile MM .NET?

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform