C# compact framework return true/false from MessageBox

  • Thread starter Thread starter Daniel Passwater via DotNetMonster.com
  • Start date 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?
 
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"
 
Back
Top