This project is read-only.

Hi........ need help ! :( :'(

May 6, 2011 at 11:30 AM

I am new to GIS. I like all your tutorials. my problem is- i want to show attribute information on mouse click for particular selected shape in shape file




plz plz plz help me on this as possible as.......

May 10, 2011 at 10:42 AM


I AM HAVING SIMILAR ISSUES: please see detailed description below:

Here is my trouble:

Selecting a Feature and return it's FID or other fields to code for further processing - HELP NEEDED!

I am developing a custom GIS application using MapWindow in .net framework C#.

I have been able to link up everything including map, toolstrip, statusbar etc. Everything works as expected when I run the program and load my shape file to the map.

My shape file has fields like FID, longitude, latitude, address, name, population etc.

My challenge now is to read this data everytime I click on a particular feature in that shape.

I have tried an event of the map control: map1_SelectionChanged(object sender, EventArgs e) but this does not return the item or feature selected.

Any help o this will be greatly appreciated.


In case you don't understand the picture, I will rephrase it here:

I am trying to read the attributes of features whenever I click on them (by code in C# or VB). Here is my code:

private void map1_SelectionChanged(object sender, EventArgs e)


MapWindow.Data.IFeature feat =



the problem is that the eventArgs - e, does not give me the selected index of the feature that was clicked upon. If I change the value of 'index' above to a number, say 21, I actually get the feature with index of 21 and from them I could get the recordset to display on a form; which is really what I am interested in. PLZ help. I am stuck.

Oct 14, 2011 at 1:08 AM


I needed something like that and I have found the solution sent by itmicro: 

Hope it helps!



Mar 30, 2012 at 8:15 AM
evemar wrote:


I needed something like that and I have found the solution sent by itmicro: 

Hope it helps!



The link you provided is helpful. But my question is how to select features using mouse click?

The code in the link is to be used after selecting a feature.

Anybody, please help..


Thanks & Regards,

Chandan Kumar Rath

Mar 31, 2012 at 1:20 AM

You can put the map in select mode

 uxMap.FunctionMode = DotSpatial.Controls.FunctionMode.Select;
Apr 2, 2012 at 12:27 PM

Thanks.. Mudnug,

This solved my problem.