private void txtFindAddress_KeyPress(object sender, KeyPressEventArgs e) { if ((Keys)e.KeyChar == Keys.Enter) { GeoCoderStatusCode status = TheMap.SetPositionByKeywords(txtFindAddress.Text); if (status != GeoCoderStatusCode.G_GEO_SUCCESS) { _Dh.msgExclamation("Не могу найти '" + txtFindAddress.Text + "', причина: " + status.ToString()); } } }