Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# vs VB
Message
From
26/06/2007 10:50:32
 
 
To
25/06/2007 10:10:34
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01235330
Message ID:
01235675
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform