Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# vs VB
Message
De
26/06/2007 10:50:32
 
 
À
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:
01235675
Vues:
14
Daniel,

You should try one of the several translators available online:

http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
http://www.carlosag.net/Tools/CodeTranslator/
http://authors.aspalliance.com/aldotnet/examples/translate.aspx
http://www.kamalpatel.net/ConvertCSharp2VB.aspx

The first one listed is the only one that converts this code correctly, though. But that's because the C# code isn't coded in the conventional manner for specifying EventHandlers (although it works just fine).
Load += Page_Load;
is usually coded like this:
Load += new EventHandler(Page_Load);
~~Bonnie



>Hi
>
>How I write this is VB
>
>public class Class1: Page
>{
> public Class1()
> {
> Load += Page_Load;
> }
>
> private void Page_Load(object sender, EventArgs e)
> {
> }
>}
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform