Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Inheritance
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00715754
Message ID:
00715770
Vues:
15
You can use System.ComponentModel.Component.DesignMode to check to see if you are in design mode, but I don't this is set until after your form is constructed. Thus, it won't work in initialize components because this is called from the constructor.

>I inherit from a form, and in the new event of the form i set its left a top position to some screen coordinates, the problem is that when i show it at design time, the form is moved to the coordinates i place in the base form class, and i want that the form only move at run time, not design time.
>
>Forms in VB cannot move at desing time, i think this is a bug, is there a way to know if the form is at design time or runtime?
>
>so if it is at design time i will not move the form.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform