VB Chapters 11 & 12 Security panel app chpt 12. Textbox Properties In the Interest Calculator we have a few new properties Multi-line property set to.

Slides:



Advertisements
Similar presentations
Chapter 4 - Control Statements
Advertisements

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 12 – Security Panel Application Introducing.
CS0004: Introduction to Programming Select Case Statements and Selection Input.
Information System Design Lab 5&6. User Interface Design.
Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Control structures Part 2 iteration control To enable repetition of a statement block.
Car Payment Calculator – Chapter 9 (loops)
CSC110 Fall Chapter 5: Decision Visual Basic.NET.
Control Structures: Getting Started Sequence and Selection also arithmetic operators, data types, logical operators.
Copyright © 2001 by Wiley. All rights reserved. Chapter 8: Security, Menus, and Files Security Menu Systems Creating a Memo Editor Using the Clipboard.
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.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 9 Car Payment Calculator Application Introducing the Do While...Loop and Do Until...Loop.
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
Visual Basic Chapter 1 Mr. Wangler.
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Interest Calculator Application Introducing the For...Next Repetition Statements.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Chapter 4: Making Decisions. Understanding Logic-Planning Tools and Decision Making Pseudocode – A tool that helps programmers plan a program’s logic.
For Loops (ProjFor1, ProjFor2, ProjFor3, ProjFor4, textbox, textbox1) Please use speaker notes for additional information!
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 5 – Dental Payment Application: Introducing.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 8 Dental Payment Application Introducing CheckBox es and Message Dialogs.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Boolean Tricks. Expressions in Conditions Condition must evaluate to Boolean but can be arbitrarily complex.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
CHAPTER FIVE Specifying Alternate Courses of Action: Selection Statements.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Security Panel Application Introducing the Select Case Multiple-Selection Statement.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.1.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
Microsoft Visual Basic 2012 CHAPTER ELEVEN Multiple Classes and Inheritance.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.1.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
1 Chapter 3 – Examples The examples from chapter 3, combining the data types, variables, expressions, assignments, functions and methods with Windows controls.
Chapter 15 I’m on the Inside; You’re on the Outside (Nested Loops) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 16 I’m on the Inside; You’re on the Outside.
Visual Basic.NET BASICS Lesson 11 List Boxes, For Next Loops, and Label Settings.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Copyright © Don Kussee 1410-Ch5 #1031 CNS 1120 Chapter 5 Selection statements 1120-Ch5.PPT.
Beginning ASP.NET in C# and VB Chapter 9
 2003 Prentice Hall, Inc. All rights reserved. 1 Outline 11.1 Test-Driving the Interest Calculator Application 11.2 Essentials of Counter-Controlled Repetition.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Chapter 8 Multiple Forms, Modules, and Menus. Introduction This chapter demonstrates how to: – Add multiple forms to a project – Create a module to hold.
Making Choices with if Statements
Chapter 8: Writing Graphical User Interfaces
Multiple Classes and Inheritance
3.01 Apply Controls Associated With Visual Studio Form
Data Validation and Protecting Workbook
3.01 Apply Controls Associated With Visual Studio Form
3rd prep. – 2nd Term MOE Book Questions.
Introducing Do While & Do Until Loops & Repetition Statements
Visual programming Chapter 3: GUI (Graphical User Interface) Part I
CHAPTER FIVE Decision Structures.
More Selections BIS1523 – Lecture 9.
Tutorial 12 – Security Panel Application Introducing the Select Case Multiple-Selection Statement Outline Test-Driving the Security Panel Application.
Welcome with Ifs CSC 230 (Blum).
Chapter 3: Introduction to Problem Solving and Control Statements
Chapter (3) - Looping Questions.
HOW TO CREATE A CLASS Steps:
CIS 16 Application Development Programming with Visual Basic
Visual Basic – Decision Statements
Fonts, TabControl, ListBox
YOUR text YOUR text YOUR text YOUR text
Selection Statements Chapter 3.
The Selection Structure
F T T T F.
Presentation transcript:

VB Chapters 11 & 12 Security panel app chpt 12

Textbox Properties In the Interest Calculator we have a few new properties Multi-line property set to true ReadOnly set to true Scrollbar set to Vertical

TextBox Methods inputTextbox.clear( ) inputTextbox.focus( )

Listboxes Allow users to select items from a list Users can add or delete items You must write code to add or remove items from a listbox paymentsListbox.items.clear( ) paymentsListbox.items.add(“months” & ControlChars.Tab & “monthly Payments”) gradesListBox.Items.Add(val(inputTextbox.Text))

Hidden Code You’re creating lots of code when you work with the GUI. To see this code click “show All Files” in the solution explorer and then click the + next to the DentalPayment.vb. Double click designer

Select Case Another option for selection Useful when there are many different options – it is a multiple selection statement Can take the place of layers of nested or stacked ifs. This is much preferred over too many nested ifs The expression following the keywords Select Case is called a controlling expression

Case Statements Conditions are checked in the case statements Multiple values tested in a single case statement are separated by a comma Bad Case Statement: Case 51 To 30 Here the case statement is ignored and may result in a logic error

Case Else Case Else can be helpful with error checking But be careful where you use it. Using it before any of your Case Statements results in a syntax error

An Example Select Case AccessCode Case Is < 10 message = "restricted access" Case 1645 To 1689 message = "technitions" Case 8345 message = "custodians" Case 9998, 1006 To 1008 message = "scientists" Case Else message = "access denied" End Select

Adding Stuff to a Listbox LogEntryListBox.Items.Insert(0, date.now & “ “ & message)

Neat Textbox Stuff The Text property of textboxes to access user input SecurityCodeTextBox.Clear( ) SecurityCodeTextBox.Text &= “2” PasswordChar : setting this property to * masks data enter in the textbox. Can prevent a user from modifying text in a textbox by setting enabled property to “false”