Word Processor Version.01 EME 4411 Week 5. The Scroll Bars.

Slides:



Advertisements
Similar presentations
VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
Advertisements

1 After completing this lesson, you will be able to: Format text. Format numbers as currency. Use Format Painter. Add borders to cells. Add shading to.
Chapter 2 –Visual Basic, Controls, and Events
Graphical User Interface (GUI) A GUI allows user to interact with a program visually. GUIs are built from GUI components. A GUI component is an object.
Introduction to Computing Dr. Nadeem A Khan. Lecture 11.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab2 Managing Controls.
Chapter 31 Visual Basic Controls A Form is a windows-style screen displayed by Visual Basic programs. In a form, a programmer can create objects in a form.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Chapter 2 –Visual Basic, Controls, and Events
1 After completing this lesson, you will be able to: Add text to slides. Adjust the position of text objects. Format text. Change text alignment and spacing.
MS-Access XP Lesson 5. Creating a Query with Expression Builder Eg. Consider the following table. Table Name: Overtime Fields & Data types: Emp No (Number),
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
BIM313 – Advanced Programming Simple Controls 1. Contents Traditional Controls – Labels, Text Boxes, Buttons, Check Boxes, List Boxes, Combo Boxes Advanced.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
The Common Dialog Box. Installing the Common Dialog Box May NOT be your standard VB toolbox.
LESSON 4 Formatting a Worksheet. Borders are often used to separate different groups of data. 1. True 2. False
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 2 Creating a User Interface.
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
For Loops (ProjFor1, ProjFor2, ProjFor3, ProjFor4, textbox, textbox1) Please use speaker notes for additional information!
CIS 338: VB.NET Components Dr. Ralph D. Westfall April, 2011.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
Chapter 9 - VB.Net by Schneider1 Chapter 9 – Additional Controls and Objects 9.1 List Boxes, Combo Boxes, and the File-Opening Control The List Box Control.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
1. S:\Courses\CSSE\ibrahima\CS2340\Notes Folder Section1 Folder Section2 2.
ME 142 Engineering Computation I Custom Dialog Boxes.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
Chapter 2 P. 1 Introducing more controls (on the Toolbox) (Fig. 2.1) - Text box - Frame - Option button - Check box - Image Example P. 44 Figure 2.2 Message.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
What is Visual Basic.NET? 110 B-1 e.g. a word processor doesn’t do anything until the user clicks on a button, types text... A programming language that.
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.
CHAPTER:07 JAVA IDE PROGRAMMING-II Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
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.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
VAT Calculator program Controls Properties Code Results.
Introduction to Microsoft Word Introduction to toolbars and buttons.
Word Processor Version.2. Methods Visual Basic is –Object Oriented –Event Driven Objects –Properties –Methods.
Excel 2010 Formatting Cells. Formatting text To change the font:
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Controls. Common properties Height – Height of the control Left – Left of the control Width – width of a control Top - From the screen top Font – Foreground.
1 Introduction to Visual Basic Dr Mohd Nabil Almunawar MS 3403 Advanced Computing.
INDESIGN TO REVIEW. TEXT TOOL Used to -change font and font size -add text to text blocks -selecting and highlighting text.
Scrollbar1 The Scrollbar A final tool in the toolbox is the scrollbar. There are two of them, one ordered horizontally and the other vertically, both do.
Microsoft Visual Basic 2012 CHAPTER FIVE Decision Structures.
{ Power Point and Text Working with Text Boxes and Formatting Text.
Chapter 2 - VB 2008 by Schneider1 Chapter 2 –Visual Basic, Controls, and Events 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
Microsoft Visual Basic 2005: Reloaded Second Edition
Excel 2010 Formatting Cells
Chapter 1: An Introduction to Visual Basic 2015
Chapter 8: Writing Graphical User Interfaces
Introduction to Computing
Program and Graphical User Interface Design
CHAPTER FIVE Decision Structures.
Chapter 3 Fundamentals of Programming in Visual Basic 3
Standard Controls.
CHAPTER FIVE Decision Structures.
Module 2 إنشاء تطبيقات الويندوز
Horizontal Centering Using the menu bar
Development The Foundation Window.
Providing an area on a PowerPoint slide that users can write into.
CHAPTER FOUR VARIABLES AND CONSTANTS
Custom Forms with VBA in Excel In-Class Exercise #11
Presentation transcript:

Word Processor Version.01 EME 4411 Week 5

The Scroll Bars

Important Properties max and min - range of integers the horizontal scroll bar can represent No caption property - use a label value property specifies the current value of the scroll bar. smallchange - click on an arrow Largechange - click a open area between the handle and the arrow

Example Write a program that allows the user to input a number between 1 and 100 We will use a horizontal scroll bar to ensure that the user ONLY adds a legal integer

Design the Interface

Set the Properties Scroll Bar Name = hsbScroll1 Value = 50 smallchange = 1 largechange = 5 LabelName = lblValue Caption = "50" Alignment = Center

Write the Code Private Sub hsbScrollBar1_Change() lblValue.Caption = hsbScrollBar1.Value End Sub

Word Processor.1 Write a simple word processor that allows the user to set the font name with radio buttons, font style with check boxes, and font size with a horizontal scroll bar.

Design the Form

Properties FormfrmWordBackColor = Make it blue Caption = "Word Processor.01" Command Button cmdClearCaption = "&Clear" Command Button cmdExitCaption = "E&xit" Text BoxtxtFontSizeAlignment = Center

Properties (continued) Scroll BarHSBFontSizeLargeChange = 4 Max = 22 Min = 6 SmallChange = 4 Value = 14 Check BoxchkItalicsBackColor = Make it blue Caption= “&Italics” Check BoxchkUnderlineBackColor = Make it blue Caption = “&Underline” Check BoxchkBoldBackColor = Make it blue Caption = "&Bold"

Properties (Continued) Option ButtonoptSchoolbookBackColor = Make it blue Caption = "Schoolbook" FontName = "Century Schoolbook" FontSize = 8.25 Option ButtonoptArialBackColor = Make it blue Caption = "Arial" FontName = "Arial" FontSize = 8.25 Option ButtonoptSansSerifBackColor = Make it blue Caption = "Sans Serif"

Properties (Continued) Text BoxtxtTextFontBold = False MultiLine = True ScrollBars = Vertical LabelLabel3Alignment = Center BackColor= Make it blue Caption = "Font Size:" LabellblFontTypeBackColor = Make it blue Caption = "Font Type:" LabellblFontBackColor = Make it blue Caption = "Select Font:"

Write the Code chkBold If chkBold is false Then set Font bold in text widow to False Else set Font bold in text widow to True

Write the Code chkUnderline If underline value is False Then set Font underline to False Else set Font underline to False

Write the Code optArial If its value is True Then txtText.FontName = "Arial"

Write the Code hsbFontSize set text size caption to HSB’s Font size set text.window font size to HSB Font size

Homework Write Word Processor.1 Have a great week!

Write the Code chkItalics If chkItalics is false set Font Italic in text window to False Else set Font Italic in text window to True