Hi I am studying some codes from the web that I need for a future project, but I am having trouble changing this code from C# to VB.net. Can someone help pleasE?
this.btnAdd.Click += btnAdd_Click;
Adding event handlers is done differently in VB.NET:
AddHandler btnAdd.Click, AddressOf btnAdd_Click
AddHandler(btnAdd.Click, AddressOf btnAdd_Click)
Most often, for simplier conversions like that, you can use the web based tool at http://www.developerfusion.com/tools/convert/csharp-to-vb/
Though, it should be seen as a advise or guideline.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.