C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet1056/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   1052   1053   1054   1055   1056   1057   1058   1059   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

Compiling from the IDE

To compile the program using the Visual Studio IDE, first create a new Windows Application 

project. Do this by selecting File | New Project. Then select Windows Forms Application in 

the New Project dialog box. Call the project 



WinSkel

. Delete all C# source code files that 

were automatically created. Next, right-click on the WinSkel project name and select Add 

and then select New Item. From the Add New Item dialog box, select C# Code File, and 

name the file 

MyWinProject.cs

. Now, enter the skeleton code exactly as shown, and then 

build the solution. To run the project, select Debug | Start Without Debugging.

Adding a Button

In general, the functionality of a window is expressed by two types of items: controls and 

menus. It is through these items that a user interacts with your program. Menus are 

described later in this chapter. Here you will see how to add a control to a window.

Windows defines many different types of controls, including pushbuttons, check boxes

radio buttons, and list boxes, to name just a few. Although each type of control is different, 

they all work in more or the less the same way. Here, we will add a pushbutton to a 

window, but the same basic procedure can be used to add other types of controls.



Button Basics

A pushbutton is encapsulated by the 



Button

 class. It inherits the abstract class 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   1052   1053   1054   1055   1056   1057   1058   1059   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish