MessageBox Examples in C# WinForms - CSharp WinForms
1. Default MessageBox with OK button.
A - MessageBox with Yes and No Button
B - MessageBox with Yes , No and Cancel Button
A - MessageBoxIcon Asterisk
Check Out ...and Do Comment Here
1. Default MessageBox with OK button.
MessageBox.Show("Welcome to Csharp-Language.blogspot.com");
2. Default MessageBox with OK button and Title.MessageBox.Show("Welcome to Csharp-Language.blogspot.com","C#Language");
3 .MessageBox with Yes , No , Cancel , Abort ,Retry and Ignore ButtonA - MessageBox with Yes and No Button
B - MessageBox with Yes , No and Cancel Button
MessageBox.Show("Do you want to Continue ?", "Question", MessageBoxButtons.YesNoCancel);
C - MessageBox with Retry and Cancel ButtonMessageBox.Show("Do you want to Continue ?", "Question", MessageBoxButtons.RetryCancel);
D - MessageBox with Abort , Retry and Ignore buttonMessageBox.Show("Do you want to Continue ?", "Question", MessageBoxButtons.AbortRetryIgnore);
E - MessageBox with OK and Cancel ButtonMessageBox.Show("Do you want to Continue ?", "Question", MessageBoxButtons.OKCancel);
4. MessageBoxIcon Asterisk , Error , Exclamation and QuestionA - MessageBoxIcon Asterisk
MessageBox.Show("Message Box Icons ..!!", "Icons",MessageBoxButtons.YesNo,MessageBoxIcon.Asterisk);
B - MessageBoxIcon ErrorMessageBox.Show("Message Box Icons ..!!", "Icons",MessageBoxButtons.YesNo,MessageBoxIcon.Error);
C - MessageBoxIcon ExclamationMessageBox.Show("Message Box Icons ..!!", "Icons",MessageBoxButtons.YesNo,MessageBoxIcon.Exclamation);
D- MessageBoxIcon QuestionMessageBox.Show("Message Box Icons ..!!", "Icons",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
Check Out ...and Do Comment Here
No comments:
Post a Comment