Friday, January 09, 2009 10:41 AMHello,
I want close a MessageBox programmatically after some background process in Windows CE(C#.NET v 3.5).
Please anyone help me with sample code.
Thanks in advance.
Friday, January 09, 2009 11:37 AM
better way is own dialog with custom behavior.
But here is the dirty and quick way. :) In your project add reference to the assembly Microsoft.WindowsCE.Forms.
Wednesday, May 19, 2010 11:53 AMFor me, it display a message box from another dll and the header also varies depends on which driver being selected. How to close those message boxes from program? Please help
Wednesday, May 19, 2010 3:14 PMModerator
Basically the same way as in the above sample - using the FindWindow API.
You have to call 'FindWindow' multiple times - once for each message box you'd expect to appear.
MVP Windows Embedded
Thursday, May 20, 2010 10:36 AMIf Message box has Yes n No buttons , its not working. Is there any way to do ?
Thursday, May 20, 2010 5:24 PM
If Message box has Yes n No buttons , its not working. Is there any way to do ?
You can use the API PostMessage to send ID_OK or ID_CANCEL, it is available in OpenNETCF.Win32.Win32Window.PostMessage, like this