1. Trang chủ
  2. » Giáo Dục - Đào Tạo

C co ban 7 HHK compatibility mode

19 125 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 19
Dung lượng 502,01 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Sử dụng controls trong C# PrintDocument  PrintPreviewControl Printing Support Controls... Sử dụng controls trong C#PROPERTIES AutoZoom Columns Document Rows StartPage UseAntiAlias Zoom

Trang 1

Lập trình trên Windows

với Microsoft® NET

Giảng viên : Hồ Hoàn Kiếm

Trang 2

Sử dụng controls trong C#

 PrintDocument

 PrintPreviewControl

Printing Support Controls

Trang 3

Sử dụng controls trong C#

PROPERTIES

AutoZoom

Columns Document

Rows

StartPage

UseAntiAlias

Zoom

InvalidatePreview

PrintPreviewControl

Trang 4

Sử dụng controls trong C#

Dialog Boxes

Uses

Types (by Presentation)

To display information and messages for the user

As a means of accepting user-input

Trang 5

Sử dụng controls trong C#

Dialog Types

 Types of Dialog (by definition)

• OpenFileDialog

• PageSetUpDialog

• FontDialog

• ColorDialog

• SaveFileDialog

• PrintPreviewDialog

• PrintDialog

Custom dialog boxes

Common dialog boxes

Trang 6

Sử dụng controls trong C#

PROPERTIES

CheckFileExists DefaultExt

FileName

FileNames

Filter

InitialDirectory

MutiSelect

ReadOnlyChecked

RestoreDirectory

ShowHelp

ShowReadOnly

OpenFileDialog

Trang 7

Sử dụng controls trong C#

PROPERTIES

AllowVectorFonts

AllowVerticalFonts

Color Font

MaxSize

MinSize

ShowColor

ShowEffects

ShowHelp

FontDialog

Trang 8

Sử dụng controls trong C#

AllFullOpen

AnyColor

Color

CustonColors FullOpen

ShowHelp

SolidColorOnly

PROPERTIES

ColorDialog

Trang 9

Sử dụng controls trong C#

PROPERTIES

CreatePrompt

OverwritePrompt

OpenFile

SaveFileDialog

Trang 10

Sử dụng controls trong C#

MessageBox [1]

 MessageBox

Code for showing Messagebox:

MessageBox.Show(“[Message]”);

 MessageBox method is overloaded in twelve more ways to give more functionality

Trang 11

Sử dụng controls trong C#

MessageBox [2]

• MessageBoxButtons

• MessageBoxIcon

• MessageBoxDefaultButton

• MessageBoxOptions

Trang 12

Sử dụng controls trong C#

MessageBoxButton

Member Name

AbortRetryIgnore

OK

OKCancel

RetryCancel

YesNo

YesNoCancel

Trang 13

Sử dụng controls trong C#

MessageBoxIcon

Exclamation Warning

Hand

Information

None

Trang 14

Sử dụng controls trong C#

MessageBoxOptions

Member Name

DefaultDesktopOnly

RightAlign

RtlReading

ServiceNotification

Trang 15

Sử dụng controls trong C#

MessageBoxDefaultButton

Member Name

Button1

Button2

Button3

Trang 16

Sử dụng controls trong C#

Visual Effects in WinForms

 Transparent Forms

 Control Docking

 Control Anchoring

 Visual Inheritance

Trang 17

Sử dụng controls trong C#

Transparent Forms

this.Opacity = 0.83;

Trang 18

Sử dụng controls trong C#

Control Anchoring

Control

Anchored Control not Anchored

Trang 19

Sử dụng controls trong C#

Visual Inheritance

Creates a base Form Used at various places Allows changes to be made in the inherited form

Ngày đăng: 21/09/2017, 16:28

w