Lập trình visual basic 6.0
Số trang: 472
Loại file: pdf
Dung lượng: 3.54 MB
Lượt xem: 16
Lượt tải: 0
Xem trước 10 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
These notes were developed for the course, “Learn Visual Basic 6.0” They are not intended to be a complete reference to Visual Basic. Consult the Microsoft Visual Basic Programmer’s Guide and Microsoft Visual Basic Language Reference Manual for detailed reference information. The notes refer to several software and hardware products by their trade names. These references are for informational purposes only and all trademarks are the property of their respective companies. Lou Tylee Course Instructor.ContentsiiiLearn Visual Basic 6.0Contents1. Introduction to th e Visual Basic Language and EnvironmentPreview...................................................................................................................1-1 Course Objectives.................................................................................................1-1 What is Visual Basic?...........................................................................................1-2 Visual Basic 6.0 versus Other Versions of...
Nội dung trích xuất từ tài liệu:
Lập trình visual basic 6.0 i Course Notes for:Learn Visual Basic 6.0 © Lou Tylee, 1998 KIDware 15600 NE 8 th, Suite B1-314 Bellevue, WA 98008 (206) 721-2556 FAX (425) 746-4655ii Learn Visual Basic 6.0 Notice These notes were developed for the course, “Learn Visual Basic 6.0” They are not intended to be a complete reference to Visual Basic. Consult the Microsoft Visual Basic Programmer’s Guide and Microsoft Visual Basic Language Reference Manual for detailed reference information. The notes refer to several software and hardware products by their trade names. These references are for informational purposes only and all trademarks are the property of their respective companies. Lou Tylee Course Instructor Contents iii Learn Visual Basic 6.0 Contents1. Introduction to th e Visual Basic Language and Environment Preview...................................................................................................................1-1 Course Objectives.................................................................................................1-1 What is Visual Basic?...........................................................................................1-2 Visual Basic 6.0 versus Other Versions of Visual Basic ..................................1-3 16 Bits versus 32 Bits...........................................................................................1-3 Structure of a Visual Basic Application...............................................................1-4 Steps in Developing Application .........................................................................1-4 Drawing the User Interface and Setting Properties...........................................1-5 Example 1-1: Stopwatch Application - Drawing Controls.................................1-9 Setting Properties of Objects at Design Time ................................................ 1-10 Setting Properties at Run Time......................................................................... 1-11 How Names Are Used in Object Events..........................................................1-11 Example 1-2: Stopwatch Application - Setting Properties ............................1-12 Variables .............................................................................................................1-14 Visual Basic Data Types ...................................................................................1-14 Variable Declaration..........................................................................................1-14 Example 1-3: Stopwatch Application - Attaching Code................................. 1-18 Quick Primer on Saving Visual Basic Applications ........................................ 1-20 Exercise 1: Calendar/Time Display..................................................................1-21iv Learn Visual Basic 6.02. The Visual Basic Language Review and Preview..............................................................................................2-1 A Brief History of Basic.........................................................................................2-1 Visual Basic Statements and Expressions ........................................................2-2 Visual Basic Operators.........................................................................................2-3 Visual Basic Functions .........................................................................................2-4 A Closer Look at the Rnd Function......................................................................2-5 Example 2-1: Savings Account............................................................................2-6 Visual Basic Symbolic Constants.....................................................................2-10 Defining Your Own Constants ...........................................................................2-10 Visual Basic Branching - If Statements............................................................2-11 Key Trapping....................................................................................................... 2-12 Example 2-2: Savings Account - Key Trapping .............................................. 2-14 Select Case - Another Way to Branch............................................... ...
Nội dung trích xuất từ tài liệu:
Lập trình visual basic 6.0 i Course Notes for:Learn Visual Basic 6.0 © Lou Tylee, 1998 KIDware 15600 NE 8 th, Suite B1-314 Bellevue, WA 98008 (206) 721-2556 FAX (425) 746-4655ii Learn Visual Basic 6.0 Notice These notes were developed for the course, “Learn Visual Basic 6.0” They are not intended to be a complete reference to Visual Basic. Consult the Microsoft Visual Basic Programmer’s Guide and Microsoft Visual Basic Language Reference Manual for detailed reference information. The notes refer to several software and hardware products by their trade names. These references are for informational purposes only and all trademarks are the property of their respective companies. Lou Tylee Course Instructor Contents iii Learn Visual Basic 6.0 Contents1. Introduction to th e Visual Basic Language and Environment Preview...................................................................................................................1-1 Course Objectives.................................................................................................1-1 What is Visual Basic?...........................................................................................1-2 Visual Basic 6.0 versus Other Versions of Visual Basic ..................................1-3 16 Bits versus 32 Bits...........................................................................................1-3 Structure of a Visual Basic Application...............................................................1-4 Steps in Developing Application .........................................................................1-4 Drawing the User Interface and Setting Properties...........................................1-5 Example 1-1: Stopwatch Application - Drawing Controls.................................1-9 Setting Properties of Objects at Design Time ................................................ 1-10 Setting Properties at Run Time......................................................................... 1-11 How Names Are Used in Object Events..........................................................1-11 Example 1-2: Stopwatch Application - Setting Properties ............................1-12 Variables .............................................................................................................1-14 Visual Basic Data Types ...................................................................................1-14 Variable Declaration..........................................................................................1-14 Example 1-3: Stopwatch Application - Attaching Code................................. 1-18 Quick Primer on Saving Visual Basic Applications ........................................ 1-20 Exercise 1: Calendar/Time Display..................................................................1-21iv Learn Visual Basic 6.02. The Visual Basic Language Review and Preview..............................................................................................2-1 A Brief History of Basic.........................................................................................2-1 Visual Basic Statements and Expressions ........................................................2-2 Visual Basic Operators.........................................................................................2-3 Visual Basic Functions .........................................................................................2-4 A Closer Look at the Rnd Function......................................................................2-5 Example 2-1: Savings Account............................................................................2-6 Visual Basic Symbolic Constants.....................................................................2-10 Defining Your Own Constants ...........................................................................2-10 Visual Basic Branching - If Statements............................................................2-11 Key Trapping....................................................................................................... 2-12 Example 2-2: Savings Account - Key Trapping .............................................. 2-14 Select Case - Another Way to Branch............................................... ...
Tìm kiếm theo từ khóa liên quan:
phần cứng máy tính hệ thống thông tin phần mềm máy tính cơ sở dữ liệu Công nghệ thông tin liên lạcGợi ý tài liệu liên quan:
-
50 trang 496 0 0
-
62 trang 401 3 0
-
Đề thi kết thúc học phần học kì 2 môn Cơ sở dữ liệu năm 2019-2020 có đáp án - Trường ĐH Đồng Tháp
5 trang 378 6 0 -
Bài giảng Xử lý sự cố phần mềm - Bài 4 Xử lý sự cố sử dụng Internet
14 trang 337 0 0 -
Nhập môn Tin học căn bản: Phần 1
106 trang 327 0 0 -
Bài tập thực hành môn Phân tích thiết kế hệ thống thông tin
6 trang 317 0 0 -
Giáo trình Cơ sở dữ liệu: Phần 2 - TS. Nguyễn Hoàng Sơn
158 trang 292 0 0 -
13 trang 292 0 0
-
Phân tích thiết kế hệ thống - Biểu đồ trạng thái
20 trang 285 0 0 -
Tài liệu học tập Tin học văn phòng: Phần 2 - Vũ Thu Uyên
85 trang 255 1 0