Don,
I have the confirmation its a bug of mapwingis. When I tried this very little code :
1) the cursorMode don't change (maybe change the cursormode in an event axmap its bad, in this case its my fault)
2) impossible to close the form with the red close button of the window : all application is blocked in the mode of the map
Tristan
I have the confirmation its a bug of mapwingis. When I tried this very little code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace test2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
axMap1.SendMouseDown = true;
axMap1.MouseDownEvent += new AxMapWinGIS._DMapEvents_MouseDownEventHandler(axMap1_MouseDownEvent);
}
private void axMap1_MouseDownEvent(object sender, AxMapWinGIS._DMapEvents_MouseDownEvent e)
{
axMap1.CursorMode = MapWinGIS.tkCursorMode.cmPan;
MessageBox.Show("test2");
axMap1.CursorMode = MapWinGIS.tkCursorMode.cmPan;
}
}
}
Launch this code : click on the map, messageBox appear and close it. 1) the cursorMode don't change (maybe change the cursormode in an event axmap its bad, in this case its my fault)
2) impossible to close the form with the red close button of the window : all application is blocked in the mode of the map
Tristan