MessageBox.Show method

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hello.
How can I in Compact Framework disply message box with yes/no buttons and
some icon,
like: MessageBox.Show("Some Text", "Title", MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation) ?
 
A few of the method overrides available on the desktop are not in the
Compact Framework to keep the size down, therefore you'll have to use the
override which also accepts the default button argument e.g.

MessageBox.Show("Some Text", "Title", MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1)

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top