You are on page 1of 14

Create your first C # project using

windows Form in 13 simple steps


Very easy and fun to learn !!!!

[Type the abstract of the document here. The abstract is typically a short summary of
the contents of the document. Type the abstract of the document here. The abstract
is typically a short summary of the contents of the document.]

Vajuhudeen
2/7/2021
Page 1 of 13

How to create a new project in C#?


Step 1 :

Click the icon “Visual Studio


Express for Desktop”

Page 1 of 13
Page 2 of 13

Step 2 : The Start up screen

Page 2 of 13
Page 3 of 13

Step 3: Open your Visual Studio Environment and Click


File->New Project

Page 3 of 13
Page 4 of 13

Step 4 : Change the name as FirstApp

Change the name as


FirstApp

Page 4 of 13
Page 5 of 13

Step 5 : Tool Box Solution Explorer


Form Window

Page 5 of 13
Page 6 of 13

Step 6 : 1. Double Click the Button


2. Button control is placed in the form

1. Double Click the


Button
2. Button control is
placed in the form

Page 6 of 13
Page 7 of 13

Step 7 : Right Click the Button

1. Right Click the control


2. Click View Code

Page 7 of 13
Page 8 of 13

Step 8 : write the code in line 22


The code has to be written between the 2 braces in the function “button1_click”
MessageBox.Show("Welcome to C sharp!");
Refer step 9

Type the code here


MessageBox.Show("Welcome to C sharp!");

Page 8 of 13
Page 9 of 13

Step 9

Page 9 of 13
Page 10 of 13

step 10 : Build the program

1. Click this icon to build the program

Page 10 of 13
Page 11 of 13

Step 11 : Build succeed

Page 11 of 13
Page 12 of 13

Step 12 : Start the program


Click the start icon

Page 12 of 13
Page 13 of 13

Step 13: The Output


Click the button to see the
message

Page 13 of 13

You might also like