1. Trang chủ
  2. » Luận Văn - Báo Cáo

Bài giảng Lập trình trên Windows với Microsoft® .NET: Bài 7 - Hồ Hoàn Kiếm

19 6 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

Tiêu đề Lập Trình Trên Windows Với Microsoft® .NET
Người hướng dẫn Hồ Hoàn Kiếm
Trường học University of Science and Technology
Chuyên ngành Computer Science
Thể loại bài giảng
Định dạng
Số trang 19
Dung lượng 1,2 MB

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 CheckFileExists DefaultExt FileName FileNames Filter

Trang 1

Lập trình trên Windows

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

Methods

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

Me tho

ds

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

Member Name Member Name

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: 24/10/2023, 19:02

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm