Hi,

I have developed an application, containing some edit boxes, check boxes, radio buttons etc to get the inputs from the user.... after selecting desired inputs and filling up the edit boxes... user need to "click" a button.... At this moment i am creating a thread to perform some operation... so i want the UI to be diabled for the user becoz i am using the input data from the UI which should not be changed during the operation... after completing the operation in the thread.. i want to resume previous state of the UI....!!!

How can i do this...???

Can i use "PreTranslateMessage" to trap mouse button click so as to ignore it while the thread is running...!!!! Any Suggestions... Plz....