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
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