Running Your Visual Basic Program

Slides:



Advertisements
Similar presentations
An Introduction to Visual Basic Terms & Concepts.
Advertisements

Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 03.
Text Box controls are used when users are required to type some input (during program execution), or output is displayed on the form (known as the user-
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
To type the VB code behind the command button (named cmdPush), Double-Click on the Push Me (caption) command button As a result the Visual Basic Code Window.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
An Introduction to Visual Basic
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., Visual Basic Projects Project Structure and VB’s Programming Tools chapter TWO.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Chapter Two Creating a First Project in Visual Basic.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Visual Basic Programming Introduction VB is one of the High level language VB has evolved from the BASIC language. BASIC stands for Beginners All-purpose.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Chapter 4: Do-It-Yourself Designing (Designing Interfaces)
Dive Into® Visual Basic 2010 Express
Multiple Forms and Menus
Visual Basic.NET Windows Programming
Programming in visual basic .net Visual Basic Building Blocks
Object-Orientated Programming
Gateways to Independence
Graphical User Interface in MATLAB
Introduction to Programming and Visual Basic
Chapter 1: An Introduction to Visual Basic 2015
Visual Basic Code & No.: CS 218
Chapter Topics 15.1 Graphical User Interfaces
Chapter 8: Writing Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Section 17.1 Section 17.2 Add an audio file using HTML
1. Introduction to Visual Basic
How to design a Windows Forms application
3.01 Apply Controls Associated With Visual Studio Form
Microsoft Access Illustrated
Using Procedures and Exception Handling
An Introduction to Visual Basic
Standard Controls.
Visual Basic.
CIS16 Application Development Programming with Visual Basic
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
Working with Symbols and Interactivity
Visual Studio.
Chapter 15: GUI Applications & Event-Driven Programming
Getting around in Windows and VB
Chapter 4 Enhancing the Graphical User Interface
CHAPTER FOUR VARIABLES AND CONSTANTS
Chapter 4 Enhancing the Graphical User Interface
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

Running Your Visual Basic Program Design time is the mode in which you add controls to containers (such as forms) and write code to respond to events. The runtime environment allows you to see your program running the same way a user would. During runtime, you can see all your Visual Basic code, but you cannot modify it. Break mode allows you to pause the execution of your Visual Basic program (during runtime) to view, edit, and debug your program code.

VB Proje Dosyaları Project files (.vbp) list all project files and components in the project. The project file also contains information on the project’s environmental settings. The form modules (.frm) file contains textual descriptions of forms, controls, and their properties. The form module file can also contain form-level declarations of variables, constants, and procedures. The group project file (.vbg) contains a list of all Visual Basic projects in one group. The form data file (.frx) is created for each form. It contains binary information for graphics such as pictures and icons. Standard modules (.bas) can contain global declarations and public and external procedures. Thus, the development of a Visual Basic project involves keeping track of several different files, and accessing these files individually within the Visual Basic environment, as needed.

Kontroller (Denetimler) ve ilgili Özellikleri

You can change the properties of controls Visual Basic controls have events, properties, and methods associated with them. You can change the properties of controls when you’re designing your program (also known as design-time changes) through program code during runtime (when your program is running) You can start to see that the properties describe a control or object.

Kontrol İsimleri

Form Kontrolü Sometimes called windows or dialog boxes, forms act as an interface to programs’ functionality. Forms also serve as containers for other controls.

Sık Kullanılan Form Özellikleri

Komut Düğmesi Kontrolü Command buttons are most commonly used for starting or triggering procedures through an event.

Sık Kullanılan Komut Düğmesi Özellikleri

Tiyo If you add the ampersand (&) symbol to any control’s Caption property, it underlines the character to its immediate right. This is a useful tool for creating shortcut keys. Shortcut keys let a user hold down the Alt key and press the letter underlined to invoke the click event of that control.

Etiket Kontrolü Label controls are often used as descriptive text for other controls that do not have their own caption properties. A good example is the text box control, which has no self-describing property viewable to a user in runtime. Often, a programmer will put a label control to the left of a text box to describe what the user should enter into the text box.

Sık Kullanılan Etiket Özellikleri

Metin Kutusu Kontrolü The text box control is popular for acquiring user input and displaying various outputs. You might find it useful when expecting a user to enter either numbers or text or a combination of both. The text box control has no caption property, so a label generally signifies to the user what it is you want him or her to enter as input.

Sık Kullanılan Metin Kutusu Özellikleri

Resim Kontrolü ve Resim Kutusu Kontrolü You can use both the image control and the picture box to display various graphics (such as .bmp, .gif, .jpg, or .ico files). However, applying a number of graphics to your program can consume a lot of memory and create excessive overhead. If you plan to develop games or other graphically intensive programs with Visual Basic, it is important for you to understand each of these control’s benefits and disadvantages. Some benefits to the image control are that it uses much less memory and overhead than the picture box does and that it can re-paint itself much faster than the picture box. An advantage of the picture box is that it is actually a window or container that can contain other controls, unlike the image control.

Sık Kullanılan Resim ve Resim Kutusu Özellikleri

Çerçeve Kontrolü Like a form or a picture box, the frame control is considered a container for other controls. Frames are often used to isolate various functionalities on a form. For example, I might use frames if I were developing a loan application that had a section for the applicant and a section for the co-applicant on the same form. I would put all the applicant’s labels, text boxes, and other controls in one frame control and the co-applicant’s controls in another frame. This way, I graphically isolate groups of items or tasks. Frames also serve an important role when you use option buttons (sometimes called radio buttons) or check boxes.

Sık Kullanılan Çerçeve Özellikleri

Seçim kutusu kontrolü You use check boxes when you want to give the user the ability to select one or more choices. You should place check boxes in a container such as a frame control to denote a related grouping.

Sık Kullanılan Seçim Kutusu Özellikleri

Seçenek Düğmesi Kontrolü Option buttons are often referred to as radio buttons. The term radio button refers to old car stereos that used push-in buttons. You could push in only one button at a time. This still holds true with the concept behind the graphical option button. Option buttons are similar to check boxes with one main exception. As with the old car radio buttons, you can click only one button at a time. They are useful when you want to give a user a selection of various items but let her select only one out of many. As soon as a user selects one option button out of many, the rest of the option buttons in a group become unavailable. Like check boxes, option buttons are generally placed in a container such as a frame control.

Sık Kullanılan Seçenek Düğmesi Özellikleri

Lab Uygulaması: Word Art