Professional Documents
Culture Documents
CH3 1
CH3 1
Compiled By Abrham Y 3
Microsoft Visual studio
Compiled By Abrham Y 4
Select windows form application-
5
Compiled By Abrham Y
type application name->choose the location to save -
>click on ok
Compiled By Abrham Y 6
When you click OK, a new Windows Application
project will be created for you:
Compiled By Abrham Y 7
In C# 2010, your screen will look like this
Compiled By Abrham Y 8
Click View Code from the menu to see the
following window appear(double click form)
Compiled By Abrham Y 9
Click View design from the menu to see the following
window appear
10
Compiled By Abrham Y
Microsoft Visual Studio(IDE)
Compiled By Abrham Y 11
Common Terminologies
• Forms: are objects that represent windows or dialog boxes
that makes up part of an application user interface
• Controls: are graphical object such as button , textBox
,Label etc that can be placed on a form for different
purpose
• Object :is a general terms used to describe all forms and
controls that makes up an application
• Properties : are characteristics of a given object such as
size, color, caption etc
• Event: action recognized by a form or control
• Methods: action that an object can perform or that can be
performed on the object 12
Compiled By Abrham Y
Form
Compiled By Abrham Y 13
Form
• Form is a container, which can holds all others controls with
in it.
• In C#.Net every form is treated as a class and is derived from
system.windows.forms.form class
• In C#.Net windows form we can place various controls like
Text Box , Button , List Box, Radio Button ,Cheek Box etc
Compiled By Abrham Y 14
Properties with Form
Properties :
are characteristics of a given object such as
size, color, caption etc
Properties windows is used to set properties
of the object in your project
Compiled By Abrham Y 15
Properties with Form
Properties descriptions
BackColor Sets the form background color.
Text The text, which will appear at the title bar of the form.
Name This is the actual name of the form
MinimizeBox By default, this property is True and you can set it to False to
hide the Minimize button on the title bar
MaximizeBox By default, this property is True and you can set it to False to
hide the Maximize button on the title bar.
MinimumSize This specifies the minimum height and width of the window
you can minimize.
MaximumSize This specifies the maximum height and width of the window
you maximize
Font This property specify font type, style, size
………………… …………………………………….
E.T.C E.T.C 16
Compiled By Abrham Y
Example 1
1. Change the title of a windows forms
the title of a windows form is an important
aspects of application
You can do this by just changing the form text
properties form1
Compiled By Abrham Y 17
Example 2
Compiled By Abrham Y 18