Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top