Customized messagebox in CF2 (Windows Mobile)

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
 
A

Adam

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.
 
P

Peter Foot [MVP]

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
 
C

clkurtz

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
 

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