Is it possible to put a form control on its own thread?
Posted
by
BVernon
on Stack Overflow
See other posts from Stack Overflow
or by BVernon
Published on 2013-11-07T21:48:51Z
Indexed on
2013/11/07
21:53 UTC
Read the original article
Hit count: 101
I'm using a DataGridView and some operations that I do cause it to become unresponsive for periods of time. Normally I would put data processing in its own thread to make the form more responsive, but in this case it's the DataGridView itself that's taking so long.
This leads me to wonder whether it's possible to have the main form on one thread and the DataGridView on another thread so it doesn't prevent the main form from responding.
I completely understand that doing so is probably not 'safe' and likely opens up a can of worms that makes it hardly worth trying and I fully expect this post will be getting down votes for merely suggesting such a ridiculous idea.
Is this possible? And if so how would you go about it?
© Stack Overflow or respective owner