Download presentation
Presentation is loading. Please wait.
Published byBruno Edwards Modified over 9 years ago
1
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, 2010
2
2 2 Visual Basic 2005 Programming Tour
3
3 Structure of a VB Application (Project) 1. Project: A collection of files. 2. Solution: a collection of projects 3. Forms: Windows that you create for user interface. 4. Controls: Objects drawn on the form to allow user interaction. 5. Properties: Characteristics of forms and objects. 3
4
4 Structure of a VB Application (Project) … Cont. 5. Methods: Built-in procedures 6. Event Procedures: Code related to objects. 7. General Procedures: Code not related to objects. 4
5
5 Start Page Open existing project Create new project
6
6 New Project Dialog Box Project Name Select windows Application
7
7 7 Integrated Development Environment IDEIDEIDEIDE
8
8 8 VB 2005 Integrated Development Environment (IDE)
9
9 9 The Title Bar The line at the top of the window which shows: 1. The project name. 2. The project status (Design, Run).
10
10 The Menu Bar Note: Each menu item has it’s own pull down menu which contains another menu items. Menu Item
11
11 The Tool Bar Contains buttons that performs specific tasks. To Show/Hide Tool Bar: View, Toolbars
12
12 The Tool Box Copyright 2008: Ismail M.Romi, PPU. All Rights Reserved A collection of buttons called Controls that enables you to implement the graphical user interface.
13
13 The Form Window The background window that the user see during the program execution. The forms are given a default name Form1, From2… On the form you can place the controls from the toolbox required for the user interface. Title Bar
14
14 The Solution Explorer A window that lists all solution projects, files You can use the context window to Add, Save, Remove file.
15
15 The Properties Window Property Name Property Value Toggle to events Toggle to properties Control Name
16
16 The Properties Window Lists the properties and events of the controls (objects). Each control and form has it’s own properties and events. Each property consists of : Name. Value. You can change the values in the properties window, and this is reflected automatically on the associated Control (Object).
17
17 Placing Controls on the Form Ways: 1- Double-click the control you want from the ToolBox. 2- Choose the Control from the ToolBox, assign it’s place on the from.
18
18 Lab1 Training Part I: Examples 1- Design a VB project, to perform Greetings. 2- Saving the project.
19
19 Lab1 Training Part II: Questions Question I Start VB. Close the Form, Project, Properties, and Toolbox windows. Now perform the actions necessary to make each window appear on-screen.
20
20 Lab1 Training Question II Start a new project in VB 2005. Delete any custom controls from the project. Add three text boxes and two command buttons. Change the text property of each button, Use whatever text you want Change the Text property of the text boxes so that they are blank (Empty).
21
21 Lab1 Training Design the greeting interface as follow: When you click University Greeting, the message “Welcome to PPU University” will appear in the textbox. When you click College Greeting, the message “Welcome to Adm. College” will appear in the textbox. When you click End the program ends. Question III
22
22 Lab1 End Lab1 End Thank you
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.