Please use speaker notes for additional information!

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

Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
© by Pearson Education, Inc. All Rights Reserved. continued …
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Introduction To Visual Basic 6. Announcements  Thursday, Oct 9th, 7:30PM, C106 Lloyd Douglas (NSF) Diversity in Science-Who needs it? 5 extra credits.
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)
Muffin Shop - if, calculations etc. (muffins, muffins2) Please use speaker notes for additional information!
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.
INSERT YOUR POSTER TITLE ON THIS LINE HERE Name of Author Department Name and Institution Name can go here Insert your text here. You can change the font.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
InvEasy (Project1) Please use speaker notes for additional information!
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Getting Started with HTML Please use speaker notes for additional information!
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
New Project in Visual Basic Please use speaker notes for additional information!
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 2 – Introduction to the Visual Studio .NET IDE
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.
Standard Grade Programming using VB 1 Programming Visual Basic.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
1 Advanced Computer Programming Lab Calculator Project.
Class 2 Remote Instruction Review of Working with Buttons EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.
You should unzip and download the beginning programs.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
VAT Calculator program Controls Properties Code Results.
Pay Example (PFirst98) Please use speaker notes for additional information!
INSERT YOUR POSTER TITLE ON THIS LINE HERE Name of Author Department Name and Institution Name can go here Insert your text here. You can change the font.
Insert your text here. You can change the font size to fit your text. You can also make this box shrink or grow with the amount of text. Simply double.
INSERT YOUR POSTER TITLE ON THIS LINE HERE Name of Author Department Name and Institution Name can go here BACKGROUNDPURPOSE Insert your text here. You.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Sorry, the pen lost control. Anyway, you need to download both the.vbp and the.frm for each project. I looked at PrCalc, I did not look at inventory.
Visual Basic A Quick Tutorial VB Review for ACS 367.
Reading comprehension exercise using PowerPoint. Question Slides 1.Start a new PowerPoint presentation with 4 slides on it. 2.On Slides 2, insert the.
I am using Visual Basic 6 for this class. If you want to use a different version, please contact me. Thanks!
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Introduction to PowerPoint 2003 Professional Development Training for Classroom Teachers.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
Introduction To Visual Basic 6
CUS POWERPOINT PRESENTATION
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Chapter 1: An Introduction to Visual Basic 2015
Data Environment and Grouped Report
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Microsoft Excel A Spreadsheet Program.
3.01 Apply Controls Associated With Visual Studio Form
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Chapter 7 Advanced Form Techniques
First line of text goes here
Creating and executing a program
Department Array in Visual Basic
Please use speaker notes for additional information!
3 1 2 Significant Figures with calculations (Advanced)
Presentation Template
Report using ADO connection
Visual Basic: Week 5 Review User defined functions
If statements (Inven1, Inven2, Inven2a, Inven3, Inven3a)
Visual Basic Menu Editor
Using screens and adding two numbers - addda.cbl
Introduction to Programming
2g – ComboBox Lingma Acheson CSCI N331 VB .NET Programming
Presentation transcript:

Please use speaker notes for additional information! Settings in VB Please use speaker notes for additional information! This slide show deals with properties and settings used in Visual Basic.

Settings This slide shows the design of the form named frmSettings. Later slides will deal with the individual boxes and other entries.

TextBox This text box has a background color(BackColor) that was selected from the palette.

Settings The text that appears in txtBox2 has been entered under the property text.

Settings The box shown here is a picture box. It can be used to hold images or to hold other information. In this example, it will display text.

Settings This form includes a series of six buttons. The first button is labeled Blue by making the entry Blue under Caption.

Settings This shows the code that is attached to the buttons. To get here, I double clicked on the Blue button while it was in design mode. Note that the properties are for the cmdBlue button.

Private Sub cmdBlue_Click() txtBox1.BackColor = &HFF0000 End Sub Settings Option Explicit Private Sub cmdBlue_Click() txtBox1.BackColor = &HFF0000 End Sub Private Sub cmdCalc_Click() picPic1.Print 3 + 4 * 2 picPic1.Print 3 + (4 * 2) picPic1.Print picPic1.Print (3 + 4) * 2 Private Sub cmdExit_Click() End Private Sub cmdFond10_Click() txtBox2.Font.Size = 10 Private Sub cmdFont14_Click() txtBox2.Font.Size = 14 Private Sub cmdRed_Click() txtBox1.BackColor = &HFF When the Blue Command Button is clicked, then the BackColor property of txtBox1 is set to &HFF0000 which translates to blue. For details on the color code, see help or text. The Calculate Button displays information in the Picture box using .Print. First I am displaying 3 +4*2. Since multiplication is above addition in the hierarchy, the multiplication is done first giving 8 and then 3 is added giving 11. Because of the parenthesis in the second formula the multiplication is done first - without the parenthesis it would still be done first because of the hierarchy. The result of 8 is added to 3 making 11. Next a blank line is printed. Finally the final formula is resolved. This means that because of the parenthesis, the addition is resolved first giving 7 and then the 7 is multiplied by 2 giving 14. End will exit the form. This shows the Visual Basic associated with each of the command buttons. The Font Size in txtBox2 is changed through these commands. Background color is changed to Red.

Start of running - directly after Run is clicked. This slide show the run or execution of the form. It starts with green because that was the initial property setting for BackGround.

Run In Run, the Blue button was clicked. This slide shows the blue background in Box1 that happened as a result of executing the code that changed the background to Blue.

Run Result after clicking the Red button. When the Red command button is clicked, the code that changes the BackColor to Red is executed.

Run When the Font14 button is clicked, the font in Box2 changes to a larger font. When the user clicks on Font14, the font size on the text in Box2 is changed. See the Visual Basic instructions that are executed.

Run Pressing the Font10 button returns the font size to 10. Font10 means that the Visual Basic code associated with this button is executed and the font size gets set to 10.

Run The Calculate button causes the code that calculates and prints the results in the picture box to execute. There are four lines. The first line calculates and prints 11 as does the second. The third line prints a blank line and the fourth line calculates and prints 14. You need to be sure to review the hierarchy explained on the next slide. The last button which is the Exit button will exit the program and form and return to design.

Order of operation (working from left to right): Exponentiation Hierarchy Order of operation (working from left to right): Exponentiation Multiplication and/or Division Addition and/or Subtraction To change the order of operation, you can use parenthesis. Please review the order of operation in a programming text.