System.Threading.Tasks.TaskFactory.StartNew(() => MyLongRunningMethod());
hollystyles
Veteran Poster
1,188 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
Skill Endorsements: 0
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13
I suspect that you are getting a cross-thread error that is causing the routine to fail. Are trying to acces the datagridview in the background worker? If so, that is likely the cause.
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13