Post a link to the thread where you previously got help on this for further reference. You should probably have just used that same thread.
Auto refresh splash screen
Collapse
X
-
Originally posted by r035198xPost a link to the thread where you previously got help on this for further reference. You should probably have just used that same thread.Comment
-
Originally posted by PlaterSo you have created a TimerCallback and everything?
Really I don't know why all this work is needed, I've never needed anything so extravagant for it.
[code=c#]
// Create the delegate that invokes methods for the timer.
TimerCallback mytimerDelegate = new TimerCallback(U pdateStatus);
// Create a timer that signals the delegate to invoke
// UpdateStatus after 1/2 second, and every 1/4 second thereafter.
Timer stateTimer = new Timer(timerDele gate, mytimerDelegate , 500, 250);
public void UpdateStatus(Ob ject stateInfo)
{
//do stuff in your timer-triggered thread
}
[/code]Comment
-
Originally posted by alag20Here is my code in the new thread [bytes wasnt letting me post on this thread previously when I made the new thread] http://bytes.com/forum/showthread.ph...41#post3182241
MODERATORComment
-
The cross threading exception usually only popups when debuging (it gets ignored in a regular build)
You would want to use the InvokeRequired property on your gui items to find out if you need to invoke (force the command to execute on the same thread) for the gui.Comment
-
Originally posted by PlaterThe cross threading exception usually only popups when debuging (it gets ignored in a regular build)
You would want to use the InvokeRequired property on your gui items to find out if you need to invoke (force the command to execute on the same thread) for the gui.Comment
Comment