试过这个代码:
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) };
}
我只收到消息框错误