1

试过这个代码:

    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) };

    }

我只收到消息框错误

4

1 回答 1

0

使用热版,稳定版不适用于 .NET 4,这里: https ://greatmaps.codeplex.com/releases/view/73162

是最后一页。

于 2014-12-22T04:50:06.843 回答