I have downloaded the 4.8 release of MapWinGIS ocx (MapWinGIS-only-v4.8SR-32bit-installer) and I am trying to develop some basic C# app using it (in VS2010).
Well, I added the MapControl component to VS Toolbox (MapWinGIS.ocx).
After, following some samples and forum messages, have also added the Legend component by browsing the MapWinInterfaces.dll located inside the MapWindow 4 install dir.
So far so good, but:
1. After I drop a MapControl (axMap1) and a Legend (legend1) to my form, why the property Map from the Legend component shows (none) (VS properties panel)
? Shouldn't appear there the axMap1 as option?
Ok, I have searched the forum and found that the declaration:
legend1.Map = (MapWinGIS.Map)axMap1.GetOcx();
Solves the problem. But, when I uncheck the layer visibility in the legend it does not change the visibility of the layer in the Map. Do I need to do this manually?
2. There's also an ocx version of the Legend component - it is outdated, correct? Should I use it? Wich one is recomended?
3. Why the Legend component is not included in the same instalation of OCX?
4. Digging a little more, I also added the components from MapWindow.Controls.dll: ProjectionTreeView, GisToolBox, DataGridViewMW, ProjectionMap, LayersControl, ProjectionTextBox.
How to use them? There is some documentation?
If someone could provide a simple app showing just a MapControl, a Legend and a DataGrid all working together, would be very very appreciated!
But i am unable to upload it due to size restriction in our network.
If you can send your code. I will try to help out.