This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet1830/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1822   1823   1824   1825   1826   1827   1828   1829   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

// Add code for MouseDown event.

}

}



Beyond these OnXXX() methods, here are a few other methods to be aware of:

• Hide(): Hides the control and sets the Visible property to false

• Show(): Shows the control and sets the Visible property to true

• Invalidate(): Forces the control to redraw itself by sending a Paint event (more information

on graphical rendering in the section “Rendering Graphical Data Using GDI+” later in this

chapter).



The Functionality of the Form Class

The Form class is typically (but not necessarily) the direct base class for your custom Form types.

In addition to the large set of members inherited from the Control, ScrollableControl, and

ContainerControl classes, the Form type adds additional functionality in particular to main win-

dows, MDI child windows, and dialog boxes. Let’s start with the core properties in Table 27-5.

Table 27-5.

Properties of the Form Type

Property

Meaning in Life

AcceptButton

Gets or sets the button on the form that is clicked when the user

presses the Enter key.

ActiveMDIChild

Used within the context of an MDI application.

IsMDIChildIsMDIContainer

CancelButton

Gets or sets the button control that will be clicked when the user

presses the Esc key.

ControlBox

Gets or sets a value indicating whether the form has a control box.

FormBorderStyle

Gets or sets the border style of the form. Used in conjunction with

the FormBorderStyle enumeration.

Menu


Gets or sets the menu to dock on the form.

MaximizeBox

Used to determine whether this form will enable the maximize 

MinimizeBox

and minimize boxes.

ShowInTaskbar

Determines whether this form will be seen on the Windows taskbar.

Continued

C H A P T E R   2 7  



P R O G R A M M I N G   W I T H   W I N D O W S   F O R M S



971

8849CH27.qxd  10/16/07  11:59 AM  Page 971



Document Outline

1   ...   1822   1823   1824   1825   1826   1827   1828   1829   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.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