Hi All,
Sorry if this is the wrong place but first time here and I am still getting my bearings. I am currently working on a mobile appilication utilizing the Environmental System Research Institute's(ESRI) Mobile SDK. I need to start a thread with the below address of passing in a X,Y point from a mouse click. I have the code to do so in C# but cannot get it to work in vb.net. Let me know if you have any suggestions as simple code converters do not work...
C# code:
private void map1_MouseUp(object sender, ESRI.ArcGIS.Mobile.MapMouseEventArgs e)
{
if (startGP)
{
startGP = false;
Thread GPThread = new Thread(delegate() { CreateServiceAreaLayer(e.MapCoordinate.X, e.MapCoordinate.Y); });
GPThread.Start();
}
}
What I have tried:
Dim GPThread As New Thread(AddressOf (CreateServiceAreaLayer(e.MapCoordinate.X, e.MapCoordinate.Y)))
GPThread.Start()
Sorry if this is the wrong place but first time here and I am still getting my bearings. I am currently working on a mobile appilication utilizing the Environmental System Research Institute's(ESRI) Mobile SDK. I need to start a thread with the below address of passing in a X,Y point from a mouse click. I have the code to do so in C# but cannot get it to work in vb.net. Let me know if you have any suggestions as simple code converters do not work...
C# code:
private void map1_MouseUp(object sender, ESRI.ArcGIS.Mobile.MapMouseEventArgs e)
{
if (startGP)
{
startGP = false;
Thread GPThread = new Thread(delegate() { CreateServiceAreaLayer(e.MapCoordinate.X, e.MapCoordinate.Y); });
GPThread.Start();
}
}
What I have tried:
Dim GPThread As New Thread(AddressOf (CreateServiceAreaLayer(e.MapCoordinate.X, e.MapCoordinate.Y)))
GPThread.Start()