Lecture Windows programming: Chapter 3(3) - Châu Thị Bảo Hà

Chapter 3 (Cont’d) introduction to the Windows programming. In this chapter present the some advanced controls as: DomainUpDown, NumericUpDown; MonthCalendar, DateTimePicker; Timer, TrackBar, ProgressBar; Timer, TrackBar, ProgressBar;. Inviting you to refer. | Chapter 3 Windows Programming Cont’d 1 Contents Introduction to Windows Form Application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 2 Some advanced controls DomainUpDown, NumericUpDown MonthCalendar, DateTimePicker Timer, TrackBar, ProgressBar MenuStrip, ContextMenuStrip ToolStrip StatusStrip MDI Applications Form Splash, Form About Dialog ListView TreeView Slide 3 12. Creating controls NumericUpDown, DomainUpDown NumericUpDown Minimum property Maximum property Increment property Value property ValueChanged event DomainUpDown Items property Sorted property SelectedIndex property SelectedItem property SelectedItemChanged event Slide 4 DomainUpDown: Cho phép user chọn item trong số danh sách item thông qua Button Up & Down Nhập từ bàn phím NumericUpDown: Cho phép user chọn các giá trị trong khoảng xác định thông qua Nút up & down Nhập trực tiếp giá trị DomainUpDown example 5 MonthCalendar, DateTimePicker Slide 6 MonthCalendar DateTimePicker Format property Value property MaxDate property MinDate property SelectionStart property SelectionEnd property SelectionRange property MonthCalendar: Cho phép user chọn một ngày trong tháng hoặc nhiều ngày với ngày bắt đầu và ngày kết thúc. Get value from MonthCalendar: SelectionRange sr = ; // Get the start of Range. DateTime st = ; // Get the end of Range. DateTime se = ; ("RANGE START = " + () + "\nRANGE END = " + (), "Range Selection"); Hoac: ("RANGE START = " + () + "\nRANGE END = " + (), "Range Selection"); Timer Timer: is a component that raises an event at regular intervals Interval property Enabled property Start() method Stop() method Tick event Slide 7 Timer example 8 Timer example How to do? Timer example How to do? Khai báo trình xử lý sự kiện Tick TrackBar Properties Minimum Maximum . | Chapter 3 Windows Programming Cont’d 1 Contents Introduction to Windows Form Application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 2 Some advanced controls DomainUpDown, NumericUpDown MonthCalendar, DateTimePicker Timer, TrackBar, ProgressBar MenuStrip, ContextMenuStrip ToolStrip StatusStrip MDI Applications Form Splash, Form About Dialog ListView TreeView Slide 3 12. Creating controls NumericUpDown, DomainUpDown NumericUpDown Minimum property Maximum property Increment property Value property ValueChanged event DomainUpDown Items property Sorted property SelectedIndex property SelectedItem property SelectedItemChanged event Slide 4 DomainUpDown: Cho phép user chọn item trong số danh sách item thông qua Button Up & Down Nhập từ bàn phím NumericUpDown: Cho phép user chọn các giá trị trong khoảng xác định thông qua Nút up & down Nhập trực tiếp giá trị DomainUpDown example 5 MonthCalendar, DateTimePicker Slide 6 MonthCalendar .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
1    82    1    27-04-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.