Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent method call during dev mode?
Message
De
28/08/2007 04:49:58
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
How to prevent method call during dev mode?
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01250851
Message ID:
01250851
Vues:
63
Hi,
I have code to call my method in class constructor. I want to prevent it to be called during development mode. I added code to check for DesignMode before execute the actual code.

However, I found that, designmode return wrong value. It return false during dev mode (using messagebox).

Any ideas?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform