cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
Apparently, Timers with an interval of less than 1 second are discouraged. How would you thus arrange a form to fade in and out, without using timers?
I'm considering a backgroundworker that reports progress, the job the worker must do is either fadein or fadeout, the progress it reports will be translated to the opacity of the form (because the form opacity cannot be modified on the worker thread) and the work routine will be a simple loop from 0 to 20, thread sleeping upon each iteration. Does anyone have any comments on whether this is a good or bad idea?
I'm considering a backgroundworker that reports progress, the job the worker must do is either fadein or fadeout, the progress it reports will be translated to the opacity of the form (because the form opacity cannot be modified on the worker thread) and the work routine will be a simple loop from 0 to 20, thread sleeping upon each iteration. Does anyone have any comments on whether this is a good or bad idea?