Hi guyz
This post about some of basic things in MessageBox .
In this Post I am talking about
- MessageBox.Show()
- MessageBoxButtons
- MessageBoxIcon
- MessageBoxDefaultButton
- MessageBoxOptions
Initially you have to create new project and create
simple User interface like below.
in this project I am using
in this project I am using
·
Visual
studio 2010
MessageBox.Show()
- 1. Double click on the button and you can see some codes like this
- Add following codes in to the private void button1_Click (object sender, EventArgs
Code:
Write whatever you want to display
within the inverted commas. I want to display here as
Hellow C#
So final code should be like this
Code:
- 1. Then Run the Program and click the button you can see output like this
Comments