Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 05, 2007 12:57 PM by Zhao Ji Ma - MSFT
Aug 30, 2007 12:59 PM|LINK
Does any of you know how to close a msgbox in .NET compact framework a few seconds after it has been displayed programmatically?
Any help or guidance would be highly appreciated.
Aug 30, 2007 02:16 PM|LINK
Create your owne form and set timer on it.. to be close...
Aug 30, 2007 02:56 PM|LINK
Aug 30, 2007 03:03 PM|LINK
you can create timer and on tick of timer you can trigger the ok button of msgbox to close the message box
I did try with timer , but I don't know how to send a "OK" to the msgbox to close it. No luck still.
Aug 30, 2007 04:10 PM|LINK
Aug 30, 2007 04:23 PM|LINK
Could you kindly point me to some sample codes or any tutorial to achieve that?
Sep 05, 2007 12:57 PM|LINK
You can create a custom dialog box using forms. Putting a timer into a form class will be much simpler than modifying MessageBox class. You can change the FormBorderStyle and Size properties of the Form class to size a dialog box so that it's smaller like
Form.ShowDialog Method () can be used to show the form as a modal dialog box: