Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample add fix C# MetroMessageBox #118

Open
mohamedosama914 opened this issue Jun 29, 2019 · 0 comments
Open

Sample add fix C# MetroMessageBox #118

mohamedosama914 opened this issue Jun 29, 2019 · 0 comments

Comments

@mohamedosama914
Copy link

mohamedosama914 commented Jun 29, 2019

add MetroMessageBox

Fix 

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
 // MetroMessageBox.Show(this, "This is a sample Cancel  MetroMessagebox `Yes`, `No` and `Cancel` button", "MetroMessagebox", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
 }

   DialogResult dr = MessageBox.Show(this, " (Application Yes Exit) Button - Yes  |  (Application No Exit) Button + No ", "Application CefSharp Web Browser", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (dr == DialogResult.Yes)
                {
                //  Cef.Shutdown();
                }
            else
                {

                // Application.Exit();
                // cancel the closure of the form.
                e.Cancel = true;

                }
@mohamedosama914 mohamedosama914 changed the title add MetroMessageBox Sample add fix MetroMessageBox Jun 29, 2019
@mohamedosama914 mohamedosama914 changed the title Sample add fix MetroMessageBox Sample add fix C# MetroMessageBox Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant