1. Trang chủ
  2. » Công Nghệ Thông Tin

INF110 visual basic programming

114 428 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Slide 1

  • Slide 2

  • Lecture Contents:

  • Slide 4

  • Slide 5

  • VBasic Applications

  • Fundamentals of Windows Applications

  • Object Oriented Programming

  • Slide 9

  • Event Driven Programming

  • Slide 11

  • Console applications

  • Windows applications

  • Slide 14

  • Desktop and Windows application

  • Windows application: form, label, button

  • Slide 17

  • Slide 18

  • Slide 19

  • Slide 20

  • Slide 21

  • Slide 22

  • Slide 23

  • Slide 24

  • Slide 25

  • Slide 26

  • Slide 27

  • Slide 28

  • I-P-O Illustrated

  • Slide 30

  • Slide 31

  • Slide 32

  • Slide 33

  • Slide 34

  • Slide 35

  • Slide 36

  • Slide 37

  • Slide 38

  • Slide 39

  • Slide 40

  • Slide 41

  • Slide 42

  • Slide 43

  • Slide 44

  • Slide 45

  • Slide 46

  • Slide 47

  • From the Visual Studio Start Page, click Create Project

  • OR click File > New > Project…

  • Slide 50

  • Slide 51

  • Slide 52

  • Slide 53

  • Slide 54

  • Slide 55

  • Slide 56

  • Slide 57

  • Slide 58

  • Slide 59

  • Slide 60

  • Slide 61

  • Slide 62

  • Slide 63

  • Slide 64

  • Slide 65

  • Slide 66

  • Slide 67

  • Slide 68

  • Slide 69

  • Slide 70

  • Slide 71

  • Slide 72

  • Slide 73

  • Slide 74

  • Slide 75

  • Slide 76

  • Slide 77

  • Slide 78

  • Slide 79

  • Slide 80

  • Slide 81

  • Slide 82

  • Slide 83

  • Tab Order /Schneider09, pp53/

  • Slide 85

  • Slide 86

  • Slide 87

  • Slide 88

  • Practical tasks

  • Task 1

  • Slide 91

  • Slide 92

  • Slide 93

  • Slide 94

  • Slide 95

  • Slide 96

  • Slide 97

  • Slide 98

  • Slide 99

  • Slide 100

  • Slide 101

  • Slide 102

  • Task 2

  • Slide 104

  • Slide 105

  • Slide 106

  • Slide 107

  • Slide 108

  • Slide 109

  • Slide 110

  • Slide 111

  • Slide 112

  • Slide 113

Nội dung

1 INF110 Visual Basic Programming AUBG Spring semester 2011 Reference books: Schneider D., An Introduction to Programming Using Visual Basic, Prentice Hall, Pearson Education Inc., 7th Ed. 2008, 6th Ed. 2006 Liberty J., Learning Visual Basic .NET, O’Reilly, 2002 Any Visual Basic book available in AUBG library Course lecturer: Assoc. Prof. Svetla Boytcheva, PhD 2 INF110 Visual Basic Programming AUBG Spring semester 2011 Lecture 13 Title: Windows Based Applications 1 3 Lecture Contents: ❧ Windows applications – basic concepts ● OOP ● Event driven Programming ❧ Form ❧ Controls – label, edit box, button ❧ Procedures - Event handlers ❧ Visual Studio IDE 4 5 Windows Applications Windows Applications Using the Visual Studio .NET Development Using the Visual Studio .NET Development Environment Environment INF110 Visual Basic Programming 6 VBasic Applications • Console Applications • Windows Applications • Web (ASP .NET) Applications 7 Fundamentals of Windows Applications • Object Oriented Programming • Event Driven Programming 8 Object Oriented Programming • Object-oriented programming (OOP) is a programming paradigm that uses abstraction to create models based on the real world. It permits creation of entities known as UDT /User Defined data Types/ that contain data components and procedures to operate on these data components. • Typical characteristics of OOP: – modularity, – data encapsulation (data hiding) – inheritance, – polymorphism. 9 Object Oriented Programming • Windows • Forms • Controls (labels, textboxes, listboxes, checkboxes, buttons, radio buttons, etc) are objects (also called instances) that belong to specific abstract user defined data types, named classes. Analogy: Class >> Object Basic data type >> Variable 10 Event Driven Programming • Event Driven Programming is a style of computer programming where the flow of the program is determined by user actions (mouse clicks, key presses) or messages from other programs. • In contrast, in batch programming the flow is determined by the programmer. Batch programming is the style taught in beginning programming classes while event driven programming is what is needed in any interactive program. [...]... ToolBox 22 Having created a visual interface by clicking and dragging, the appropriate Visual Basic code is also automatically inserted into your program 23 Having created a visual interface by clicking and dragging, the appropriate Visual Basic code is also automatically inserted into your program 24 Having created a visual interface by clicking and dragging, the appropriate Visual Basic code is also automatically... Buttons 26 Visual Basic is completely graphically (visually) oriented Visual Basic allows you to create applications using the concepts of Graphical User Interface (GUI) It has already constructed all the necessary building blocks that an application needs like windows, command buttons, list boxes and option buttons This means that there is much less coding needed to be done and an impressive Visual Basic. .. impressive Visual Basic application can be created very quickly 27 Visual Basic is an event-driven language - the code is written to respond to specific events, e.g a user creates an event by clicking on a button, pressing a key, choosing an item in a list box or closing a window, etc In Basic, a program is executed without regard to events In Visual Basic, due to its windows interface, the users may click on... displayed in the text box • Boxes, buttons and labels are referred to as controls 14 Desktop and Windows application 15 Windows application: form, label, button 16 Windows applications For example, in Visual Basic NET, selecting the Windows Application option automatically creates the windows shown on the next slide 17 Menu bar Tool bar Toolbox window Form window Solution explorer window Main area Propertie... Basic, due to its windows interface, the users may click on a certain object randomly, so each object has to be programmed independently to be able to respond to those actions (events) Therefore, a Visual Basic program is made up of many “subprograms”, each has its own program code, and each can be executed independently, and at the same time each 28 can be linked together in one way or another I-P-O . Liberty J., Learning Visual Basic .NET, O’Reilly, 2002 Any Visual Basic book available in AUBG library Course lecturer: Assoc. Prof. Svetla Boytcheva, PhD 2 INF110 Visual Basic Programming AUBG. 1 INF110 Visual Basic Programming AUBG Spring semester 2011 Reference books: Schneider D., An Introduction to Programming Using Visual Basic, Prentice Hall, Pearson. Applications Windows Applications Using the Visual Studio .NET Development Using the Visual Studio .NET Development Environment Environment INF110 Visual Basic Programming 6 VBasic Applications • Console

Ngày đăng: 24/10/2014, 10:05