转换升级中的错误

时间:2015-07-23 16:56:28

标签: c# vb.net c#-to-vb.net

您好我尝试使用网络免费工具转换来转换它。我的问题是升级,下面是我从c#转换为vb的脚本。试图运行它,错误低于第一个代码串......

 GoogleMapForASPNet1.PushpinDrag += New GoogleMapForASPNet.PushpinDragHandler(AddressOf OnPushpinDrag) 

' Heres是PushpinDrag事件的事件处理程序

Private Sub OnPushpinDrag(pID As String)           
    lblPushpin1.Text = 
        "(" + GoogleMapForASPNet1.GoogleMapObject.Points(pID).Latitude.ToString() + "," 
        + GoogleMapForASPNet1.GoogleMapObject.Points(pID).Longitude.ToString() + ")"
End Sub

希望有人帮我解决这个问题

1 个答案:

答案 0 :(得分:1)

将其转换为:

AddHandler GoogleMapForASPNet1.PushpinDrag, AddressOf OnPushpinDrag

Documentation