The error is because you are accessing /modifying the UI control which is running on another thread .
//add this line in your constructor
Control.CheckForIllegalCrossThreadCalls = false;
but remember this is not thread safe . for more details follow this
Link
thanks