Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# vs VB
Message
 
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:
01235335
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform