Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 C#,我想将此代码转换为 VB.NET。
lol.Navigated += new WebBrowserNavigatedEventHandler(Form1_Navigated);
我使用了所有在线转换器,但没有工作。
但我想知道如何手动转换此代码。
AddHandler lol.Navigated, AddressOf Form1_Navigated
然后确保有一个事件'Form1_Navigated':
Private Sub Form1_Navigated(sender as Object, e as WebBrowserNavigatedEventArgs) //Do stuff End Sub
希望这可以帮助。