2. Using "Message Boxes" in C#.

Using "Message Box" in C#.


Now lets start our C# programming using "Windows Forms" applications. First of all lets open our first windows form application using the following path.

To create your first Windows form project, click the File menu again. This time, selectNew Project from the menu. When you do, you'll see the New Project dialogue box again and select Windows Forms Application.

Now type the following line of code as it is between the two curly brackets under static void Main() and hit enter.

MessageBox.Show("Hello C#!!");

Now run you program and see the output.

To run your program follow the bellow mentioned instructions.

Press F5 on the keyboard, or click Debug > Start Debugging.






Lesson 03-->                                                              Home









No comments:

Post a Comment