WaitCursor problem

G

Guest

Hi

In my application i set the cursor to waitcursor but its not appearing for a time till my application process the code in the try block.
i am able to click out side of my application. which i dont want...help
this is my code in my application
-------------------------------------

Cursor oldCursor = Cursor.Current;
Cursor.Current = Cursors.WaitCursor;
try
{
processid = MyObject.launchDll();//this function returns a processID
//launchDll() calls a dll which inturn invokes an exe

DateTime dt = DateTime.Now.AddSeconds(10);
while(dt > DateTime.Now)
{ //do nothing
}

}
finally
{
Cursor.Current = oldCursor;
}

----need help
--------seash
 
G

Guest

Hi,
Hi

In my application i set the cursor to waitcursor but its not appearing for a time till my application process the code in the try block.
i am able to click out side of my application. which i dont want...help
this is my code in my application
-------------------------------------

Have your application any forms or controls?
You can set cursor for them... Maybe it is a solution.

Marcin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top