试过这个代码:
private void button1_Click(object sender, EventArgs e)
{
GeoCoderStatusCode status = gMapControl1.SetCurrentPositionByKeywords(textBox3.Text);
if (status != GeoCoderStatusCode.G_GEO_SUCCESS)
{
MessageBox.Show("Geocoder can't find: '" + textBox3.Text + "', reason: " + status.ToString(), "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else { gMapControl1.SetCurrentPositionByKeywords(textBox3.Text) };
}
我只收到消息框错误
答案 0 :(得分:0)
使用热门版本,稳定版本不适用于.NET 4,此处: https://greatmaps.codeplex.com/releases/view/73162
是页面的最后一页。