Ladislav wrote:
time returns back to my program.The window created by my program is not refreshed immediately to the state before switching but I must wait until my program writes to that window.
Not sure because I haven't done it, but this is what I would try: Find or create an event that you can put some code in.
The Window class has the Activate() event. Maybe some other control has something similar that you can use. Otherwise maybe the Timer control can help you, but that might ivolve performance issues. Time things and find out.
Hope that helps, and please share your solution with the list if you come up with one.
/J -- Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua [EMAIL PROTECTED]