Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Form1_Load(object sender, EventArgs e)
- {
- Hide();
- string textv = "Líbí se vám tato aplikace?";
- string nadpis = "Moje aplikace";
- DialogResult dr1 = MessageBox.Show(textv, nadpis, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
- switch (dr1)
- {
- case DialogResult.Yes:
- MessageBox.Show("Děkuji", nadpis);
- break;
- case DialogResult.No:
- MessageBox.Show("Budeme se snažit jí vylepšit", nadpis);
- break;
- case DialogResult.Cancel:
- MessageBox.Show("Nevadí, odpovíte příště", nadpis);
- break;
- }
- Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement