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