Tuesday, June 12, 2012

Small codes of C#

Just try....

1.Open visual studio 2008 or 2010,the new version...

2.Create a new project by just clicking Create project...

3.Create a new windows application form by right clicking the name of the project in solution explorer..

4. Add a button to the newly created windows application form(drug and drop from toolbox )..

5.Double click on the button and write the following codes there...
 MessageBox.Show("Give correct                                                                             password","Entry",MessageBoxButtons.OKCancel,MessageBoxIcon.Stop); /* please write the above code in one line to have correct output*/

6.Run the programme and see the results...!






No comments:

Post a Comment