Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# vs VB
Message
 
À
25/06/2007 10:10:34
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01235330
Message ID:
01235335
Vues:
19
>Hi
>
>How I write this is VB
>
>public class Class1: Page
>{
> public Class1()
> {
> Load += Page_Load;
> }
>
> private void Page_Load(object sender, EventArgs e)
> {
> }
>}

Wouldn't it be
public class Class1
   inherits Page

   private sub new()
       addhandler load, addressof page_load
   end sub

   private sub Page_load(sender as object, e as eventargs)
   end sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform