From C# to VB

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?
 
M

Mark Rae [MVP]

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...
 
A

Alex Meleta

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,002
Messages
2,570,258
Members
46,857
Latest member
ArleenWill

Latest Threads

Top