how to solve cross-thread operation not valid control

If you use backgroud worker in project and you need to access some control[DevExpress] in another thread
then use invoke

barStaticItem1.Caption = "Process : Checking file";
this.BeginInvoke(new MethodInvoker(delegate

in above example code is mean invoke refresh method of barStaticItem1

Related posts:

This entry was posted in C#. Bookmark the permalink.