Chương 3: Lập trình với Windows Forms

Windows Forms is part of the .NET framework. | Chapter 3 Programming with Windows Forms Department of Software Engineering Faculty of Information Technology Natural Sciences University Agenda Introduction Windows Forms How to handle events in Windows Forms Adding controls to forms (design-time) Dynamically adding controls to Forms (runtime) Using Complex Controls Creating GUI Components Working with Menu Creating MDI applications with Windows Forms Deploying Windows Forms Applications What is Windows Forms (. WinForms)? Windows Forms is part of the .NET framework core classes in namespace design-time support in various namespaces Windows Forms provides classes for building UIs . custom forms, common controls, standard dialogs Visual Studio .NET provides tools for using Windows Forms templates for common starting places, and a visual designer Windows Forms Application Structure A Windows Forms application has three pieces the application itself forms in the application controls on the form Application mainForm MyForm label1 button1 Label “Hell ” Button “OK” The Application class represents the application itself no instances (all properties and methods are static) processes UI events delivered by Windows Run, DoEvents provides access to application environment ExecutablePath, StartupPath CommonAppDataPath, UserAppDataPath CommonAppDataRegistry, UserAppDataRegistry class MyApp { public static void Main() { MyForm form = new MyForm(); (form); } } Application Properties CommonAppDataPath Gets the path for the application data that is shared among all users. CommonAppDataRegistry Gets the registry key for the application data that is shared among all users. ExecutablePath Gets the path for the executable file that started the application, including the executable name. StartupPath Gets the path for the executable file that started the application, not including the executable name. UserAppDataPath Gets the path for the | Chapter 3 Programming with Windows Forms Department of Software Engineering Faculty of Information Technology Natural Sciences University Agenda Introduction Windows Forms How to handle events in Windows Forms Adding controls to forms (design-time) Dynamically adding controls to Forms (runtime) Using Complex Controls Creating GUI Components Working with Menu Creating MDI applications with Windows Forms Deploying Windows Forms Applications What is Windows Forms (. WinForms)? Windows Forms is part of the .NET framework core classes in namespace design-time support in various namespaces Windows Forms provides classes for building UIs . custom forms, common controls, standard dialogs Visual Studio .NET provides tools for using Windows Forms templates for common starting places, and a visual designer Windows Forms Application Structure A Windows Forms application has three pieces the application itself forms in the application controls on the form Application

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.