MessageBox.Show .. only OK button

  • Thread starter Thread starter Mono
  • Start date Start date
M

Mono

Hi,

Is there a way to display the "Ok" button in a MessageBox.Show call
positioned NOT in the dialog title bar, but as a "normal" dialog button?

Zarko
 
The default behaviour on Pocket PC is to have just an OK button in the
titlebar. If you have two buttons - MessageBoxButtons.OkCancel then they
will be displayed as regular buttons.

Peter
 
Peter,

I'm aware of the default behavior .. I need to override that. Is that
possible?

For example, initially show both the Ok and the Cancel then somehow hide the
Cancel button?

Zarko
 
I can't see a way that you can override the behaviour of the standard
MessageBox, OkOnly is the only configuration with a single button and this
will always be in the title bar. Even P/Invoking the native MessageBox API
function will not give you any additional options. You will have recreate
the experience using your own custom form or panel to simulate the
appearance of a system message box.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org
 
Lloyd,

I already have one ;)

p.s.
Just needed to make sure .. if something is possible on Win32 I suspected it
can be achieved on CF...

Zarko
 
Back
Top