The Check Box Control Consists of a small square and a caption

Slides:



Advertisements
Similar presentations
Chapter 6 - VB 2005 by Schneider1 Do Loop Syntax Do While condition statement(s) Loop Condition is tested, If it is True, the loop is run. If it is False,
Advertisements

CS0004: Introduction to Programming Select Case Statements and Selection Input.
Working with Intrinsic Controls and ActiveX Controls
Microsoft Visual Basic: Reloaded Chapter Five More on the Selection Structure.
C# Programming: From Problem Analysis to Program Design1 Programming Based on Events C# Programming: From Problem Analysis to Program Design 3 rd Edition.
Flowchart Start Input weight and height
Visual Basic for Applications Class III. User Forms  We place controls on User Forms to get input from the user.  Common controls include text boxes,
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab3 Check Boxes,Option Buttons Frame Control Frame Control MsgBox, InputBox Functions Day7.
Slide 1 VB Default Controls Text Box, Check Box, Option Button & Frames.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 3 Tariq Aziz and Kevin Jones.
110-C1 Chapter 2 of the text: _ text boxes, group boxes, check boxes, radio buttons, picture boxes _ defining access keys tab sequence setting the focus.
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.
Controls General Discussion. VB Controls Visual Basic Controls A control is the generic name for any object placed on a form Controls may be images,
Lesson 8 Creating Forms with JavaScript
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Chapter 9 - VB 2008 by Schneider1 Chapter 9 – Additional Controls and Objects 9.1 List Boxes, Combo Boxes, and the File-Opening Control 9.2 Seven Elementary.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
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.
Programming Test #1 Solutions. Multiple Choice 1. B) the grammar of the coding language 2. C) String 3. A) Single 4. C) 2Burgers4Me 5. B) Design Time.
Remote Instruction: Teaching with Visual Basic EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume.
CS0004: Introduction to Programming Project 1 – Lessons Learned.
Dialog Boxes – Day 1 Built-in Dialog Boxes Input Box Message Box Custom Dialog Boxes – User Forms.
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.
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.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
LOAN APPLICATION Income High Medium Low Employment References Employed Unemployed Good Bad Education High Low High Low Grant Investigate Further Investigate.
More Form Tools Combo Box (displays a list) Check Box (yes/no) Frame (groups option buttons) Option Button (exclusive choice) Ref Edit (user selects cells)
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
VAT Calculator program Controls Properties Code Results.
Pay Example (PFirst98) Please use speaker notes for additional information!
1 Chapter 4 – Decisions 4.1 Relational and Logical Operators (see other set of slides) 4.2 If Blocks (see other set of slides) 4.3 Select Case Blocks (see.
MIS333k(Poynor) Chapter 2. Intro to VBA Events Where to plug in your programs?
1 CS 106 Computing Fundamentals II Chapter 210 “Adding Controls to User Forms” Herbert G. Mayer, PSU CS Status 7/4/2013 Initial content copied verbatim.
1 Chapter 4 – Decisions 4.1 Relational and Logical Operators 4.2 If Blocks 4.3 Select Case Blocks 4.4 Input via User Selection.
Word Processor Version.01 EME 4411 Week 5. The Scroll Bars.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
Using Option Buttons. Option Buttons Are similar to checkboxes. Must appear in groups. Only one button in the group can be selected at a time. Sometimes.
Adding Code to the Option Button. Open VB 1.Double click the Calculate button and select General from the Object list box. 2.Add the following code to.
CheckBox i Option Button. Private Sub Command1_Click() Check1 = 1 If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If Check2 =
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
Ch. 101 DataTable (Continue) Lab sheet 10.3: Form Display Cities table along with percentage growth.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Visual Basic.NET BASICS Lesson 9 Nested If Statements and Radio Buttons.
Course ILT Using complex selection structures Unit objectives Include radio buttons and check boxes in an interface, create and call a user- defined Sub.
3.02 APPLY PROPERTIES ASSOCIATED WITH THE CONTROLS Computer Programming I.
Multiple Forms and Menus
Visual Basic Fundamental Concepts
A First Look at GUI Applications Radio Buttons and Check Boxes
Chapter 8: Writing Graphical User Interfaces
Even More VBA IE 469 Spring 2017.
User Forms.
Chapter 9 – Additional Controls and Objects
Chapter 4 – Decisions 4.1 Relational and Logical Operators
Chapter#9: A Deeper Look In Controls
Visual Basic..
Department Array in Visual Basic
Chapter 9 – Additional Controls and Objects
Simple Windows Applications
المحاضرة السادسة.
The List Box Control Items can be placed into the list at design time or run time The Sorted property causes items in the list to be sorted automatically.
CheckBox i Option Button
Data Types List Box Combo Box Checkbox Option Box Visual Basic 6.0
Additional Topics in VB.NET
If statements (Inven1, Inven2, Inven2a, Inven3, Inven3a)
CHAPTER FOUR VARIABLES AND CONSTANTS
Presentation transcript:

The Check Box Control Consists of a small square and a caption Presents the user with a Yes/No choice During run time, clicking on the check box toggles the appearance of a check mark. Checked property is True when the check box is checked and False when it is not CheckedChanged event is triggered when the user clicks on the check box Chapter 9

Lab Sheet 9.3: Form Chapter 9

Lab Sheet 9.3: Code Private Sub Tally(...) Handles chkDrugs.CheckedChanged, _ chkDental.CheckedChanged, chkVision.CheckedChanged, _ chkMedical.CheckChanged Dim sum As Double = 0 If chkDrugs.Checked Then sum += 12.51 End If If chkDental.Checked Then sum += 9.68 If chkVision.Checked Then sum += 1.5 If chkMedical.Checked Then sum += 25.25 txtTotal.Text = FormatCurrency(sum) End Sub Chapter 9

Lab Sheet 9.3: Output Chapter 9

The Radio Button Control Consists of a small circle with a caption (that is set by the Text property) Normally several radio buttons are attached to a group box Gives the user a single choice from several options Clicking on one radio button removes the selection from another Chapter 9

Radio Button Properties To determine if the button is on or off radButton.Checked has value True if button in on. To turn a radio button on radButton.Checked = True Chapter 9

Lab sheet 9.3: Form radCandidate1 radCandidate2 txtVote Chapter 9

Lab Sheet 9.3: Code Private Sub btnVote_Click(...) Handles btnVote.Click If radCandidate1.Checked Then txtVote.Text = "You voted for Kennedy." ElseIf radCandidate2.Checked Then txtVote.Text = "You voted for Nixon." Else txtVote.Text = "You voted for neither." End If End Sub Chapter 9

Lab sheet 9.3: Output Chapter 9