C# compact framework return true/false from MessageBox

  • Thread starter Daniel Passwater via DotNetMonster.com
  • Start date
D

Daniel Passwater via DotNetMonster.com

I'm a newbie. So please be patient. I'm working on a C# app in compact framework for a PDA. It connects to a device and extracts and updates data. I need to double check with the user before I continue with the update. I would normally use a MessageBox with an OkCancelButton. However, the compact framework doesn't support but one overload: MessageBox(string). I need to send confirmation (bool) back to the form and act accordingly with the update.

Could someone please head me in the right direction?
 
N

Nicholas Paldino [.NET/C# MVP]

Daniel,

According to the documentation, it seems that the compact framework
supports this overload for the Show method on the MessageBox class:
public static DialogResult Show(
string text,
string caption,
MessageBoxButtons buttons,
MessageBoxIcon icon,
MessageBoxDefaultButton defaultButton
); You should be able to use that, and then get the result. Hope this
helps.-- - Nicholas Paldino [.NET/C# MVP] -
(e-mail address removed)"Daniel Passwater via DotNetMonster.com"
 

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