Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using mmMessageBox
Message
 
To
19/04/2005 11:01:07
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01006205
Message ID:
01006663
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform