Customized messagebox in CF2 (Windows Mobile)

  • Thread starter Thread starter clkurtz
  • Start date Start date
C

clkurtz

Is it possible to create a custom messagebox, for example with a
checkbox?
I absolutely need to do this but i have no idea...

Any suggestion will be very appreciated :-D
 
clkurtz pisze:
Is it possible to create a custom messagebox, for example with a
checkbox?
I absolutely need to do this but i have no idea...

Any suggestion will be very appreciated :-D

Form and ShowDialog?

SOmething like this:

using (Exit frmExit = new Exit())
{
frmExit.Left = (Screen.PrimaryScreen.WorkingArea.Width -
frmExit.Width) / 2;
frmExit.Top = (Screen.PrimaryScreen.WorkingArea.Height -
frmExit.Height) / 2;
if (frmExit.ShowDialog() == DialogResult.OK &&
frmExit.textBox1.Text == "0987654321")
{
frmExit.Dispose();
this.Close();
}
}

frmExit is new form with textbox field.

Replace frmExit.textBox1.text with checkbox, checkbox must have
Modifiers:Public.
 
If you set your FormBorderStyle property to None and set the Location and
Size properties you can position the form anywhere on the screen to float
above other forms. It won't have a toolbox/titlebar of it's own like the
MessageBox, but you can draw on the form however you want.

Peter
 
I cannot believe.... I had already done exactly what Peter says, but
having some problems at design time in visual studio, I didn't run it,
thinking that there was something wrong.

Thank you very much Peter and Adam :-DDDD
 
Back
Top