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

Chapter 3 introduction to the Windows programming. This chapter presents contents: introduction to windows form application, introduction to form, introduction to control, events, some common controls, some advanced controls. | Chapter 3 Windows Programming 1 Contents Introduction to Windows Form application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 2 Create a Windows Form application Slide 3 Review Solution Explorer Toolbox Properties Window Programming interface Slide 4 Contents Introduction to Windows Form Application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 5 Introduction to Form Form (also called Windows Form) is a container for controls and components belongs to namespace Some actions with Form To add a new Form: right-click to the project shown in Solution Explorer, select Add\Windows Form To add a existing Form: right-click to the project shown in Solution Explorer, select Add\Existing Item (choose file .cs) To exclude a Form: right-click to the form shown in Solution Explorer, select Exclude From Project In the Windows Forms Designer, a Windows form can be seen in two views: the Design View and the Code View Exploring the Generated Code Slide 6 Exploring the Generated Code : + quan sát form (design) + click phải chọn View Code + quan sát constructor + sử dụng Go To Definition + quan sát nội dung file (biến toàn cục, hàm, #region) + quan sát nội dung InitializeComponent + thay đổi 1 số thuộc tính của form bằng cách viết lệnh, chọn giá trị thuộc tính Common Form properties and methods Slide 7 To create a Windows application, you generally create a Windows Form, set its properties, add controls to the Form, set their properties and implement event handlers (methods) that respond to events generated by the controls Contents Introduction to Windows Form Application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 8 Introduction to Control Control is a component with graphical part, such as button, label is visible Controls belong to namespace Most controls . | Chapter 3 Windows Programming 1 Contents Introduction to Windows Form application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 2 Create a Windows Form application Slide 3 Review Solution Explorer Toolbox Properties Window Programming interface Slide 4 Contents Introduction to Windows Form Application Introduction to Form Introduction to Control Events Some common Controls Some advanced Controls Slide 5 Introduction to Form Form (also called Windows Form) is a container for controls and components belongs to namespace Some actions with Form To add a new Form: right-click to the project shown in Solution Explorer, select Add\Windows Form To add a existing Form: right-click to the project shown in Solution Explorer, select Add\Existing Item (choose file .cs) To exclude a Form: right-click to the form shown in Solution Explorer, select Exclude From Project In the Windows Forms Designer, a Windows form can be .

Không thể tạo bản xem trước, hãy bấm tải xuố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.