C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet1062/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   1058   1059   1060   1061   1062   1063   1064   1065   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

Top

 and 


Left

, but not by 

setting

Bottom

 and 


Right

 because they are read-only. (To change the size of a control, you 

can use the 

Width

 and 


Height

 properties.)

When the button click event is received, if the top of the control is at its original location 

of 200, the location is changed to 10, 10. Otherwise, it is returned to its original location of 

100, 200. Therefore, each time you click the button, the location of the button changes.

Before 


MyButtonClick( )

 can receive messages, it must be added to the event handler 

chain linked to the button’s 

Click

 event. This is done inside the 



ButtonForm

 constructor, 

using this statement:

MyButton.Click += MyButtonClick;

www.freepdf-books.com



856

 

P a r t   I I :  



E x p l o r i n g   t h e   C #   L i b r a r y

After the method is added to the 



Click

 event, each time the button is clicked, 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   1058   1059   1060   1061   1062   1063   1064   1065   ...   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