Question

I know C# and I want to convert this code into VB.NET.

lol.Navigated += new WebBrowserNavigatedEventHandler(Form1_Navigated);

I used all Online Converters but didn't work.

But I want to know how convert this code manually.

Was it helpful?

Solution

AddHandler lol.Navigated, AddressOf Form1_Navigated

And then make sure there's an event 'Form1_Navigated':

Private Sub Form1_Navigated(sender as Object, e as WebBrowserNavigatedEventArgs)
    //Do stuff
End Sub

Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top