Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheritance for application class
Message
De
23/12/2005 09:08:22
 
 
À
23/12/2005 04:50:33
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01079712
Message ID:
01080477
Vues:
12
Hi,
>
Ok, this approach is interesting. I finally found what you meant by Sub Main(). However, in order to be able to do this, I have to disable the application framework in the project property. Doing this, I loose my XP style on the form.
>

Haven't used VB much in 2005 but I believe you can use the Application.UseVisualStyles property for that. I assume that all of the options there have equivalent properties/methods in the app class.

>
Also, a Sub cannot inherits from my application framework. So, I am back to square one.
>
Take a closer look at the C# example. Main() creates an instance of your sub-classed WindowsFormsApplicationBase.

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform