Word Processor Version.2. Methods Visual Basic is –Object Oriented –Event Driven Objects –Properties –Methods.

Slides:



Advertisements
Similar presentations
What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
Advertisements

VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
MS-Word XP Lesson 2. Page Setup & Margins 1.Click on file menu 2.Click on page set up menu item 3.Select margins tab sheet (default activated) 4.Type.
Using VB with MS Applications R. Juhl, Delta College.
MENUS AND THE MENU EDITOR Elements of a Menu Menu bar Menu title Separator bar Menu items.
Copyright © 2001 by Wiley. All rights reserved. Chapter 8: Security, Menus, and Files Security Menu Systems Creating a Memo Editor Using the Clipboard.
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)
MS-Excel XP Lesson 3. Print Preview 1.File menu, Print preview menu item 2.Print preview window, close button 3.Pages are outlined by borders on worksheet.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Introduction to Visual Basic Chulantha Kulasekere.
Operating Systems Day 6. Page Setup 1.Open notepad and type a document or file 2.Click on file menu 3.Click on page setup menu item 4.Select paper size,
Chapter 8: String Manipulation
Programming with Microsoft Visual Basic th Edition
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic Chapter 1 Mr. Wangler.
1 Unix Text Editors Creating files on the Unix system.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
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.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Let’s get started using Visual Basic!. Private Sub cmdGo_Click... Dim strMessage As String Dim sngSum As Single If IsNumeric(txtNumber1.Text) = False.
Integrated Development Environment (IDE)
Introduction to Visual Basic.NET Chapter 2 Introduction to Controls, Events.
Productivity Programs Common Features and Commands.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
 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.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Visual Basic.NET BASICS Lesson 3 Events and Code.
Chapter Two Creating a First Project in Visual Basic.
Chapter 8: Manipulating Strings
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Arrays1 From time to time an object (a variable, a picture, a label or a command) does not serve as well as a set of objects of a similar kind addressed.
CNS 1410 Graphical User Interfaces. Obectives Students should understand the difference between a procedural program and an Event Driven Program. Students.
3.9 to  Also refer to as Program  Contains set of instructions that tells the computer how to perform specific task.  Each line of code is referred.
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.
Chapter Three The UNIX Editors.
Lab 0 / Chapter 0 Windows XP Environment. 2 User Interfaces: A different perspective.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
Lesson 3 — Menus, MDIs, and Simple Loops Microsoft Visual Basic.NET, Introduction to Programming.
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.
As we upgrade from ImageNow 6.1 to ImageNow 6.3, there are some changes to the interface that the end-users will see. These slides cover changes to the.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
VAT Calculator program Controls Properties Code Results.
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
Creating Menus Menu Bar – behaves like standard Windows menus Can be used in place of or in addition to buttons to execute a procedure Menu items are controls.
Word Processor Version.01 EME 4411 Week 5. The Scroll Bars.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
CECS 5020 Computers in Education Forms and Menus.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines…
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
Menu & Clipboard Menu Cut / Copy / Paste. Menus Created in the Menu Editor Can contain menu titles, menu items, separator bars, submenu titles, and submenu.
Multiple Forms and Menus
VISUAL BASIC 6.0 Designed by Mrinal Kanti Nath.
Visual Basic.NET Windows Programming
Visual Basic Code & No.: CS 218
Lesson 1: Cut, Copy, and Paste Tools
Visual Basic Menu Editor
CIS16 Application Development and Programming using Visual Basic.net
Creating and Sending Saved Messages
Presentation transcript:

Word Processor Version.2

Methods Visual Basic is –Object Oriented –Event Driven Objects –Properties –Methods

Properties Can be set at design time –The Properties Window Can be set at run time by sending a message txtWord.FontBold = True

Methods Send Message at run time txtWord.Move 0, 0

Moving The Text Box Move the text box to the upper left corner of form Sent the text box a message to use its Move method to move to 0, 0 txtWord.Move 0, 0

Sizing the Text Box Make the text box the same size as the form Send the text box a message to set its height and width properties to the same as the forms txtWord.Height = frmWord.ScaleHeight txtWord.Width = frmWord.ScaleWidth

Adding Menus The Menu Editor is found under the Tools menu

The Menu Editor

Name and Caption Properties CaptionName &File mnuFile &OpenmnuOpen &SavemnuSave Save &AsmnuSaveAs

The Edit Menu CaptionName &EditmnuEdit Cu&t (Ctrl+X) &Copy (Ctrl+C) &Paste (Ctrl+V) &Delete - Select &All Time/&Date - Set &Font mnuCut mnuCopy mnuPaste mnuDelete mnuEditSep1 mnuSelectAll mnuTimeDate mnuEditSep2 mnuFont

The Search and Help Menus &Search &Find Find &Again Find/&Replace mnuSearch mnuFind mnuFindAgain mnuFindReplace &Help &About Ray's Word mnuHelp mnuAbout

Writing Code Put placeholders behind each menu item MsgBox “This feature is in progress”,,”MESSAGE”

The Exit Button Simple version Unload Me

The Exit Button If the user hasn’t saved their work, the computer should ask if they want to save first. Define a variable called Saved Set it to True Make it False when the text box changes

Exit Button Code In General Declarations –Private Saved as Integer In Form_Load –Saved = True In txtWord_Change() –Saved = False

Using A Message Box As A Function Dim Response as Integer Response = MsgBox(“Want to save first”,vbYesNo + vbQuestion, “Save?”)

The New Command Must be implemented like saved If the user has not saved his or her work, the computer should ask if they want to save first.

Homework Create the Word Processing.2 interface Place messages behind each item to indicate "in progress" Program New and Exit

Have a great week!