Try this if this helps
http://esrislcontrib.codeplex.com/
I was able to get this loaded in my project, but now I have this problem.Here is my code for loading just one of the shape files:
List<FileInfo> shapes = new List<FileInfo>();
FileInfo runwayShp = new FileInfo("Layers\\Runway.shp");
FileInfo runwayDbf = new FileInfo("Layers\\Runway.dbf");
shapes.Add(runwayShp);
shapes.Add(runwayDbf);
However, this is the error I receive:System.Security.SecurityException was unhandled by user code
Message=File operation not permitted. Access to path 'Layers\Runway.shp' is denied.
StackTrace:
at System.IO.FileSecurityState.EnsureState()
at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
at System.IO.FileInfo..ctor(String fileName)
at MidwayAirportApplication.MainPage.LoadShapeFiles()
at MidwayAirportApplication.MainPage..ctor()
at MidwayAirportApplication.App.Application_Startup(Object sender, StartupEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
InnerException:
The file and directory are not read-only and are inside of the Client Bin folder...how can I get it to read it?