Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Base Form Class
Message
De
09/08/2007 15:37:52
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
09/08/2007 15:34:06
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01246867
Message ID:
01247164
Vues:
35
>Yeah. You need to use the DesignMode here. It won't be incorrectly false as it is in the constructor.

I like your answer more than you know.

I tried using DesignMode in the constructor and had problems with it. I found an alternative solution that tested System.Diagnostics.Process.GetCurrentProcess().ProcessName for "devenv". It worked, but I didn't like it. I will try to go back to DesignMode.

*fist pump*
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform