Click here to Skip to main content
15,849,615 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi there,

I need to implement something like this:
when user press a button, a new process will start. The process takes about a minute to finish, and all the control of my application must be disable.

I want to make a semi-transparent layer overlapping all dialog's control, and it contains an animation (waiting animation).
The key point is that it prevent user from and interact with dialog's control, and showing the images (or animation)

How to do that?

I tried drawing a semi-transparent PNG in OnPaint() of the dialog, but it is drawn as background. I wonder if there is anyway that i can control the order in which dialog's controls are drawn, so that i can draw PNG last, over others?


Thanks.

Quy
Posted
Updated 22-Jul-11 20:26pm
v2

1 solution

In order to make a dialog transparent, take a look at this article[^] from Nic Wilson[^] here in CP.

Hope this helps!
 
Share this answer
 
Comments
quyps 23-Jul-11 1:19am    
Thanks Joan, you're such a great helper :)
Sorry, my question maybe not very clear about what i need to do. I modified it. I really appreciate your help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900