Bài giảng lập trình c 2010 chương 2 đh công nghệ đồng nai - Pdf 32

DONG NAI UNIVERSITY OF TECHNOLOGY


Object
MarshalByRefObject
Component
Control
Label Textbox Button
LinkLabel



ScrollableControl
ContainerControl
Form


DONG NAI UNIVERSITY OF TECHNOLOGY

Create
Form

Represents a window or
dialog box that makes up an
application’s user interface

Popular
Properties
Popular
Events




DONG NAI UNIVERSITY OF TECHNOLOGY

Name
Text

Description
Gets or sets the text associated
with this control
Gets or sets the Name
Gets or sets the size of the form.

Name
Size
WindowState Gets or sets the form's window state.
Normal; Minimized; Maximized

Font

Gets or sets the font of the text
displayed by the control


DONG NAI UNIVERSITY OF TECHNOLOGY

Name
Description
StartPosition Gets or sets the starting position
of the form at run time.

DONG NAI UNIVERSITY OF TECHNOLOGY

Name
BackColor

Description
Gets or sets the background
color for the control
BackGroundImage Gets or sets the background
image displayed in the control
MainMenuStrip
Gets or sets the primary
menu container for the form
ForceColor
Gets or sets the foreground
color of the control


DONG NAI UNIVERSITY OF TECHNOLOGY

Name
Cursor

Location

Icon
Opacity

Description
Gets or sets the cursor that is

Popular
Events
For Windows
Forms & Another
Controls


DONG NAI UNIVERSITY OF TECHNOLOGY

Name
Click

Description
Occurs when the control is
clicked. (Inherited from Control.)
DoubleClick Occurs when the control is double
-clicked. (Inherited from Control.)
Load
Occurs before a form is displayed
for the first time.
FormClosing Occurs before the form is closed.
FormClosed Occurs after the form is closed.


DONG NAI UNIVERSITY OF TECHNOLOGY

Name
KeyDown

KeyPress

button is pressed.(Control)


DONG NAI UNIVERSITY OF TECHNOLOGY

Name
Description
MouseEnter Occurs when the mouse pointer
enters the control.(Control)
MouseHover Occurs when the mouse pointer
rests on the control(Control)
MouseLeave Occurs when the mouse pointer
leaves the control. (Control)
MouseMove Occurs when the mouse pointer is
moved over the control. (Control)


DONG NAI UNIVERSITY OF TECHNOLOGY

Name
MouseUp

Description
Occurs when the mouse pointer
is over the control and a mouse
button is released.(Control)
MouseWheel Occurs when the mouse wheel
moves while the control has
focus.(Control)


DONG NAI UNIVERSITY OF TECHNOLOGY

MessageBox.Show("Hello Tèo 2011");
MessageBox.Show("Hello Tèo 2011","Title");
MessageBox.Show("Hello Tèo
2011","Title",
MessageBoxButtons.YesNoCancel);
MessageBox.Show("Hello Tèo
2011","Title",
MessageBoxButtons.OK,
MessageBoxIcon.Question);


DONG NAI UNIVERSITY OF TECHNOLOGY



Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status