MessageBox.Show method

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) ?
 
P

Peter Foot [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top