Last post Sep 05, 2007 01:57 PM by Zhao Ji Ma - MSFT
Aug 30, 2007 01:59 PM|jensonchew|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 03:16 PM|florim|LINK
Create your owne form and set timer on it.. to be close...
Aug 30, 2007 03:56 PM|Shobana P.S|LINK
Aug 30, 2007 04:03 PM|jensonchew|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 05:10 PM|Shobana P.S|LINK
Aug 30, 2007 05:23 PM|jensonchew|LINK
Could you kindly point me to some sample codes or any tutorial to achieve that?
Sep 05, 2007 01:57 PM|Zhao Ji Ma - MSFT|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: