Search:
Type: Posts; User: Arjay
Search:
Search took 0.14 seconds.
-
September 23rd, 2010, 12:49 AM
I just renamed them by prepending an '_' to the existing variables. That way I could see identify them as a class field rather than a method param or local variable.
I think I commented it, but...
-
September 21st, 2010, 11:21 PM
The main problem was you were blocking the main UI thread by waiting on an event. I removed the DoEvent( ) hacks because they aren't necessary.
I also restructured the code to use a modeless...
-
September 19th, 2010, 05:23 PM
Is the attached project code up to date? If not, updated it and I'll take another look at it.
As compared to C#, working in managed C++ is a real PITA, so I want to be sure the latest is posted...
-
September 19th, 2010, 12:32 AM
Not sure where you're putting the following code
One problem you have is that csrSaved needs to be a class field, saved off in the DoCount and restored in the RunWorkerCompleted.
...
-
September 18th, 2010, 05:37 PM
Before starting the worker thread, just save off the current cursor (using the Form's Cursor property) and set the new cursor.
When you receive the thread complete (or abort method), restore the...
-
September 16th, 2010, 10:58 PM
That should always be your first attempt at solving the problem. More often than not, you can find the answer yourself.
I haven't looked at your code because I don't have VS2010 handy right now. ...
-
September 6th, 2010, 11:08 PM
Zip up the project and include any data files. Also include what is ocurring and what you expect.
-
August 28th, 2010, 08:39 PM
It depends on the 'severity' of what happens if the user cancels. If the user can restart the operation easily enough and the operation doesn't take much time, then you don't need the "are you sure"...
-
August 28th, 2010, 05:56 PM
The screen shot doesn't already have a cancel button. What you have is a close button (i.e the 'X' button). You can disable the 'X' button. Not sure how off the top of my head, but I'll look in...
-
August 28th, 2010, 12:41 PM
Just add a Cancel button to the progress dialog. If the user presses the cancel button or the close 'X' button, ask the user of they wish to cancel the operation. If the operation is such that...
-
August 27th, 2010, 05:14 AM
You need to solve the basic problem of all apps that perform long running cpu intensive operations - that is, how to keep the UI responsive.
The quick and dirty, tightly coupled difficult to...
|
Click Here to Expand Forum to Full Width
|