You are on page 1of 17

C#

Windows Form
VERA A. PANAGUITON
What is Visual Studio?
Visual Studio, also known as
Microsoft Visual Studio and VS, is
an IDE made by Microsoft. It is used
for different types of software
development such as computer
programs, websites, web apps, web
services, and mobile apps.
Different languages supported by Visual Studio:
C#, C++, PHP, Python, HTML, CSS, Javascript, etc.

APDEV I by Vera A. Panaguiton 2


How to start a project?

Click

APDEV I by Vera A. Panaguiton 3


Choose the
following
categories

Select

Click

APDEV I by Vera A. Panaguiton 4


Type Project
Name

Click

APDEV I by Vera A. Panaguiton 5


Toolbox Solution Explorer
View->Toolbox View->Solution Explorer
The Solution Explorer helps you manage
The Toolbox provides
projects. It lets you browse and manage
a list of available
those projects and files. Standard
components/controls
commands include copying, editing,
from which you can
renaming and deleting items and other
add them into the
commands when right-clicking on an item.
main window when in
Designer View.
Properties
When a control is selected in the Designer,
the Properties Window will show design-
time properties and events of that control
which you can view and edit.

APDEV I by Vera A. Panaguiton 6


Form1.cs is the default
form every time you
create a project. You
can just delete it by
right clicking the name
then choose delete or
use the keyboard.

APDEV I by Vera A. Panaguiton 7


To Add Form
Project->Add Form

APDEV I by Vera A. Panaguiton 8


Select

Type Form
Name

APDEV I by Vera A. Panaguiton 9


All Forms added are shown in
the Solution Explorer Window.

APDEV I by Vera A. Panaguiton 10


Drag and Drop form controls
from the toolbox. You can
resize the elements as well
as the form.

APDEV I by Vera A. Panaguiton 11


When you select an
element its properties
are shown in the
Properties window.

APDEV I by Vera A. Panaguiton 12


Note: You can just create a single button, change the properties then copy paste. Just change the
text for the corresponding number.
APDEV I by Vera A. Panaguiton 13
Note: Change the Multiline property of textbox to True to resize it. You can also move/copy/paste/delete more than one elements,
just highlight it.
APDEV I by Vera A. Panaguiton 14
To run, double click on
Program.cs to open the
codes.

Change the underline word to


the form name you want to
run.

APDEV I by Vera A. Panaguiton 15


To run. Click the Start button

To stop. Click
this button.
OR go to Debug->Start Debugging

APDEV I by Vera A. Panaguiton 16


- END -

APDEV I by Vera A. Panaguiton 17

You might also like