I am using timer control in my application. The problem is that it behaves different when I run the application from the VB environment and when I run exe file.

In vb environment, if there is a message box displayed, the timer event does not happen until you respond to that message box. (Thats what I want)

But when i create exe and run it, the timer event is fired even there is a message box displayed (which I dont want)

Any help will be appreciated.

Thanks,
Zafar