GIỚI THIỆU LẬP TRÌNH GIAO DIỆN WINDOWS ( tt ) pdf

19 298 0
GIỚI THIỆU LẬP TRÌNH GIAO DIỆN WINDOWS ( tt ) pdf

Đ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

GIỚI THIỆU LẬP TRÌNH GIAO DIỆN WINDOWS ( tt ) Giới thiệu controls NET 2005  Các control giới thiệu slide này:  MenuStrip, ToolStrip  DateTimePicker  TreeView  ListView  ContextMenuStrip  ErrorProvider  StatusStrip  TabControl MenuStrip  Namespace: System.Windows.Forms  Dùng để tạo Menu cho ứng dụng MenuStrip  Mỗi item MenuStrip thuộc loại:  ToolStripMenuItem: menu thể văn thông thường  ToolStripComboBox: thể ComboBox  ToolStripTextBox: thể TextBox Sự kiện: Click ToolStrip  Namespace: System.Windows.Forms  Dùng để tạo ToolBar ToolStrip  Mỗi item ToolBar  ToolStripButton  ToolStripLabel  ToolStripSplitButton  ToolStripDropDownButton  ToolStripComboBox  ToolStripTextBox  ToolStripSeperator  ToolStripProgressBar  Thuộc tính  Items Tool Strip  ToolStripMenuItem Item Menu Strip  Một số thuộc tính    Text Image DropDownItems ( ToolStripSplitButton, ToolStripDropDownButton )  Sự kiện  Click DateTimePicker  Control thể ngày tháng  Thuộc tính: Value (Dùng lấy giá trị ngày tháng; kiểu liệu DateTime)  Thể liệu theo định dạng ngày, tháng, năm:  Format: Custom  CustomFormat: dd/MM/yyyy TreeView  Trình bày liệu theo quan hệ phân cấp  Mỗi node TreeView TreeNode  Mỗi TreeNode có nhiều TreeNode TreeView  Thuộc tính: Nodes, SelectedNode  Sự kiện chính: AfterSelect  Phương thức:  CollapseAll, ExpandAll, GetNodeAt(Point), EnsureVisible TreeView ListView  Trình bày liệu dạng lưới tập icon  Thuộc tính: View (LargeIcon, SmallIcon, Detail, List), Columns, Items, FullRowSelect, GridLines  Mỗi item ListView ListViewItem  Thuộc tính ListViewItem: Text, SubItems (Chỉ dùng View ListView Detail), ImageIndex ListView ContextMenuStrip  Là menu ngữ cảnh; gán cho tất control  Menu gọi người dùng nhấn chuột phải lên Control  Gán Menu vào control .ContextMenuStrip = ErrorProvider  Xuất thông báo cho control, biểu tượng thông báo canh cạnh control  Sử dụng để hiển thị thơng báo lỗi thay sử dụng Label MessageBox ErrorProvider StatusStrip  Thể status bar form  Cách dụng:  Bước 1: Drag & drop StatusStrip vào Form  Bước 2: Thiết lập control cho StatusStrip TabControl  Chia giao diện theo thiết kế Tab  Thuộc tính: TabPages HẾT ... DropDownItems ( ToolStripSplitButton, ToolStripDropDownButton )  Sự kiện  Click DateTimePicker  Control thể ngày tháng  Thuộc tính: Value (Dùng lấy giá trị ngày tháng; kiểu liệu DateTime)  Thể... CollapseAll, ExpandAll, GetNodeAt(Point), EnsureVisible TreeView ListView  Trình bày liệu dạng lưới tập icon  Thuộc tính: View (LargeIcon, SmallIcon, Detail, List), Columns, Items, FullRowSelect,.. .Giới thiệu controls NET 2005  Các control giới thiệu slide này:  MenuStrip, ToolStrip  DateTimePicker  TreeView  ListView

Ngày đăng: 23/07/2014, 09:20

Từ khóa liên quan

Mục lục

  • GIỚI THIỆU LẬP TRÌNH GIAO DIỆN WINDOWS ( tt )

  • Giới thiệu các controls trong .NET 2005

  • MenuStrip

  • Slide 4

  • ToolStrip

  • Slide 6

  • Tool Strip

  • DateTimePicker

  • TreeView

  • Slide 10

  • Slide 11

  • ListView

  • Slide 13

  • ContextMenuStrip

  • ErrorProvider

  • Slide 16

  • StatusStrip

  • TabControl

  • HẾT

Tài liệu cùng người dùng

Tài liệu liên quan