Lập trình với Winform
Số trang: 14
Loại file: ppt
Dung lượng: 1.78 MB
Lượt xem: 2
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:
Tham khảo tài liệu lập trình với winform, công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Lập trình với WinformLập trình trên Windows với Microsoft® .NETSDI 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 METHODS PROPERTIES Parent PerformClickShortCut PerformSelect TextIndexShowShortCut EVENTS Popup Select ClickContext 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:
Lập trình với WinformLập trình trên Windows với Microsoft® .NETSDI 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 METHODS PROPERTIES Parent PerformClickShortCut PerformSelect TextIndexShowShortCut EVENTS Popup Select ClickContext 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 máy tính mẹo lập trình thủ thuật lập trình C# cơ bản 2010 active windownTài liệu có liên quan:
-
Bài giảng Tin học lớp 11 bài 1: Giới thiệu ngôn ngữ lập trình C#
15 trang 262 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 251 0 0 -
Thủ thuật giúp giải phóng dung lượng ổ cứng
4 trang 223 0 0 -
15 trang 204 0 0
-
Bài giảng Công nghệ phần mềm - Chương 2: Quy trình xây dựng phần mềm
36 trang 190 0 0 -
65 trang 187 0 0
-
69 trang 162 0 0
-
Hướng dẫn lập trình với Android part 4
5 trang 158 0 0 -
142 trang 135 0 0
-
3 trang 123 0 0