From C# to VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to translate this code snippet to VB.
void Page_Init(object sender, EventArgs e)
{
Page.InitComplete += new EventHandler(InitializationComplete);
}
How do I do that?
 
I need to translate this code snippet to VB.
void Page_Init(object sender, EventArgs e)
{
Page.InitComplete += new EventHandler(InitializationComplete);
}
How do I do that?

How about this...?

Private Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs)
AddHandler Page.InitComplete, AddressOf InitializationComplete
End Sub

I should point out that I haven't actually tried this - I never go anywhere
near VB.NET - I just dropped the C# into a few online converters and that's
what they come out with...
 
Hi Arne,

One of the code online converters (which are mentioned by Mark):
[Snippet Converter Converts code snippets C# to VB.NET and vice versa]
http://codeconverter.sharpdevelop.net/SnippetConverter.aspx

Regards, Alex Meleta
[TechBlog] http://devkids.blogspot.com



AG> I need to translate this code snippet to VB.
AG> void Page_Init(object sender, EventArgs e)
AG> {
AG> Page.InitComplete += new
AG> EventHandler(InitializationComplete);
AG> }
AG> How do I do that?
 
Back
Top