Bài giảng Lập trình trên Windows với Microsoft® .NET: Bài 8 - Hồ Hoàn Kiếm
Số trang: 14
Loại file: ppt
Dung lượng: 1.59 MB
Lượt xem: 10
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Bài giảng Lập trình trên Windows với Microsoft® .NET: Bài 8 của Hồ Hoàn Kiếm sau đây giới thiệu tới các bạn những nội dung về SDI Application; MDI Application; Main Menu; Context Menu; ToolBar; Form Level and Control Level Validations; Types of Errors; Exception Handling.
Nội dung trích xuất từ tài liệu:
Bài giảng Lập trình trên Windows với Microsoft® .NET: Bài 8 - Hồ Hoàn KiếmLậptrìnhtrênWindows vớiMicrosoft® .NET Giảng viên : Hồ Hoàn KiếmSDI Application SDI (1) New Document An SDI application can have only one active window at a timeMDI Application MDI (2) OuterWindow (or) ParentWindow InnerWindow (or) ChildWindowMDI Application Designing an MDI application IsMdiContainer = trueMDI Application Activating and Deactivating Windows Deactivate child window Active child windowMDI Application As with the control at runtime As in MDI form during designMain Menu Displays a menu at runtime MainMenu can be created in two ways: Using the MainMenu control, and menu designer at design time Creating an instance of the MainMenu class at runtime MainMenu myMainMenu = new MainMenu(); this.Menu = myMainMenu;Main Menu MenuItems PROPERTIES METHODS Parent PerformClickShortCut Text PerformSelectIndexShowShortCut EVENTS Select Click PopupContext Menu Context menus give users access to frequently used commands by clicking the right mouse button Context menus are created with the help of the ContextMenu controlToolBar It is situated immediately below the menu bar The buttons in a ToolBar are analogous to the items in a menu ToolBarcontroliconas inToolBox Different button appearance options: • DropDownButton • Separator • ToggleButtonForm Level and Control Level Validations Validatedatainallthefieldsintheform EnableandDisablecontrolsbasedon userinput KeyPress KeyDown KeyUpTypes of Errors Errors DescriptionSyntax Error Occurs when we enter an incorrect line of code such as a mistake in typing a keyword, missing punctuation, or an incorrectly specified variable.Run-time Error Occurs when a command attempts to perform an invalid action.Logic Error Occurs when an application executes without syntax errors or run-time errors, but the results are not which were intended.ErrorProvider ControlErrorProvider control can be used todisplay an error icon when the user entersinvalid data. Properties Methods BlinkRate GetError BlinkStyle SetError ContainerControl IconException HandlingExceptions can be handled with the help of :
Nội dung trích xuất từ tài liệu:
Bài giảng Lập trình trên Windows với Microsoft® .NET: Bài 8 - Hồ Hoàn KiếmLậptrìnhtrênWindows vớiMicrosoft® .NET Giảng viên : Hồ Hoàn KiếmSDI Application SDI (1) New Document An SDI application can have only one active window at a timeMDI Application MDI (2) OuterWindow (or) ParentWindow InnerWindow (or) ChildWindowMDI Application Designing an MDI application IsMdiContainer = trueMDI Application Activating and Deactivating Windows Deactivate child window Active child windowMDI Application As with the control at runtime As in MDI form during designMain Menu Displays a menu at runtime MainMenu can be created in two ways: Using the MainMenu control, and menu designer at design time Creating an instance of the MainMenu class at runtime MainMenu myMainMenu = new MainMenu(); this.Menu = myMainMenu;Main Menu MenuItems PROPERTIES METHODS Parent PerformClickShortCut Text PerformSelectIndexShowShortCut EVENTS Select Click PopupContext Menu Context menus give users access to frequently used commands by clicking the right mouse button Context menus are created with the help of the ContextMenu controlToolBar It is situated immediately below the menu bar The buttons in a ToolBar are analogous to the items in a menu ToolBarcontroliconas inToolBox Different button appearance options: • DropDownButton • Separator • ToggleButtonForm Level and Control Level Validations Validatedatainallthefieldsintheform EnableandDisablecontrolsbasedon userinput KeyPress KeyDown KeyUpTypes of Errors Errors DescriptionSyntax Error Occurs when we enter an incorrect line of code such as a mistake in typing a keyword, missing punctuation, or an incorrectly specified variable.Run-time Error Occurs when a command attempts to perform an invalid action.Logic Error Occurs when an application executes without syntax errors or run-time errors, but the results are not which were intended.ErrorProvider ControlErrorProvider control can be used todisplay an error icon when the user entersinvalid data. Properties Methods BlinkRate GetError BlinkStyle SetError ContainerControl IconException HandlingExceptions can be handled with the help of :
Tìm kiếm theo từ khóa liên quan:
Lập trình trên Windows với Microsoft® .NET SDI Application MDI Application Control Level Validations Exception Handling Types of ErrorsTài liệu liên quan:
-
2891 trang 27 0 0
-
Asterisk: The Definitive Guide
734 trang 26 0 0 -
Ebook Designing active server pages - Scott Mitchell
362 trang 22 0 0 -
Bài giảng Phân tích thiết kế phần mềm: Chương 9 - Trường ĐH Ngoại ngữ - Tin học TP.HCM
11 trang 18 0 0 -
23 trang 18 0 0
-
Bài giảng Lập trình hướng đối tượng: Chương 9 - Trường Đại học Ngoại ngữ - Tin học, TP.HCM
32 trang 17 0 0 -
Bài giảng Lập trình trên Windows với Microsoft.NET: Bài 8 - ThS. Trần Bá Nhiệm
14 trang 16 0 0 -
Ebook Modern programming tools and techniques I: Part 1 - Dr. Manmohan Sharma
113 trang 16 0 0 -
53 trang 15 0 0
-
Bài giảng C# và môi trường Donet - Bài 10: Exception handling
12 trang 15 0 0