0

I'm writing a plugin that interacts with a winform map control that can display shapefile layers. I have a timer that will start a background worker to make changes to the displayed shapefile layer. Once the shapefile gets updated I call a method that's part of the shapefile layer object to refresh the the layer displayed on the map. When I call the method it initiates a bunch of other events and methods that's part of the map control. I continually get a Cross-Thread error when the the refresh is called. Any suggestions how I could accomplish this? Should I be looking at using something else besides a backgroundworker?

0 Answers0