Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmPicker control and mmPickListForm
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01260706
Message ID:
01260777
Vues:
11
Yassin,

>1. I have created a new class and inherited from mmPickListForm and then when I try to view the form in design mode I get
>
> Object reference not set to an instance of an object.
> Hide
> at OakLeaf.MM.Main.Windows.Forms.mmPickListForm..ctor(mmPickListParameters pickListParms)
>at OakLeaf.MM.Main.Windows.Forms.mmPickListForm..ctor()
>
>
>2. I am inheriting because I want to change the background color of the form, what do I need to do to call my mmpicklistForm when a user clicks on mmpicker control.

I just tried to create a subclass and it worked fine. Did you add any code to the constructor of the subclass? If so, this may be the culprit. Check out the constructor of the source code in mmPickListForm and notice it is bracketed in a check for mmAppBase.IsRunning. You need to do this for your code too.

Best 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