Monday 15 March 2010

window blocked when the application is running c# -


I have a small application coded on C # (Visual Studio 2012), when I run the application It works properly so that I can not click on the window or move it when the application is running, how can I solve this problem until the process is finished?

You can implement it.

To do this, just drag the control BackgroundWorker on the form from the toolbox and select the background worker you created and double click on it. Now separately from the URL you need to separate in this event.

Example:

  // Suppose we have a background worker, who can post a private zero background worker from the Door (Object Sender, DoWorkEventArgs e) {// put code Here}   

Now in the triggering block of code, call backgroundWorker.RunWorkerAsync () .

Example:

  Private ButtonDroker_click (Object Sender, EventArgse E) {backgroundWorker.RunWorkerAsync (); }   

Just be careful and do

No comments:

Post a Comment