How to convert this line from C# to VB.net (Windows Phone 7)

前端 未结 3 1405
感动是毒
感动是毒 2021-01-26 15:44

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?



        
相关标签:
3条回答
  • 2021-01-26 16:06

    Adding event handlers is done differently in VB.NET:

    AddHandler btnAdd.Click, AddressOf btnAdd_Click
    

    Source

    0 讨论(0)
  • 2021-01-26 16:25
    AddHandler(btnAdd.Click, AddressOf btnAdd_Click)
    
    0 讨论(0)
  • 2021-01-26 16:26

    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.

    0 讨论(0)
提交回复
热议问题