AdditionalControls 1. The MenuStrip 2 Double-click Let’s begin to design the menu bar for VB! Let’s begin to design the menu bar for VB! 3.

Slides:



Advertisements
Similar presentations
Lists, Loops, Validation, and More
Advertisements

Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5- 1 STARTING OUT WITH Visual Basic 2008 FOURTH EDITION Tony Gaddis.
Information System Design Lab 5&6. User Interface Design.
Chapter 3 Working with Layers.
What is a Dialog box? A Dialog box is a window or “form” that contains other child windows or “controls” that have a specific appearances and pre-defined.
Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
LSP 121 Access Forms, Reports, and Switchboard. Access Forms.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 03.
Programming Based on Events
ISP 121 Week 3 Access Forms and Reports. Displaying Data – The Form One way to start a form is to use the Form Wizard What table or query are you creating.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
ListBoxes The list box control allows the user to view and select from multiple items in a list. CheckedListBox control extends a list box by including.
Group Boxes and Panels Arrange components on a GUI Buttons and etc. can be placed inside a group box or panel. All these buttons move together when the.
Programming Based on Events
List-based Controls. Slide 2 Introduction There are several controls that work with lists ComboBox ListBox CheckedListBox.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
Chapter 7: Sub and Function Procedures
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Programming with Microsoft Visual Basic th Edition CHAPTER SEVEN SUB AND FUNCTION PROCEDURES.
Programming with Microsoft Visual Basic 2012 Chapter 7: Sub and Function Procedures.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Seven Sub and Function Procedures.
BIM313 – Advanced Programming Simple Controls 1. Contents Traditional Controls – Labels, Text Boxes, Buttons, Check Boxes, List Boxes, Combo Boxes Advanced.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 7 Lists, Loops, and Printing Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
1 Graphical User Interfaces Part 2 Outline ListBoxes and CheckedListBoxes ListBoxes CheckedListBoxes ComboBoxes.
 What are the different types of loops? ◦ Do….While  Performs statements within loop while a condition is true ◦ Do….Until  Performs statements within.
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
Creating a Web Site to Gather Data and Conduct Research.
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
Publishing a Macromedia Flash Movie – Lesson 131 Publishing a Macromedia Flash Movie Lesson 13.
110 M - 1 ListBoxes & ComboBoxes Provide a list for the user to select from Various styles, choose based on –Amount of data to be displayed –Space available.
Programming with Microsoft Visual Basic 2008 Fourth Edition
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Seven More on the Repetition Structure.
CIS 338: VB.NET Components Dr. Ralph D. Westfall April, 2011.
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.
ListBox, ComboBox, Menu Chapter 5.4, ComboBox Control: Properties & Methods u Combines TextBox features with a short drop- down list  cboOne.AddItem(string)
Graphical User Interfaces 2 Tonga Institute of Higher Education.
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
Adobe Photoshop CS Design Professional WITH LAYERS WORKING.
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.
Introduction to EBSCOhost Tutorial support.ebsco.com.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
7-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Controls Part 2. DateTimePicker Control Used for representing Date/Time information and take it as input from user. Date information is automatically.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al- ajmi Chapter 3 Some Visual Basic Controls and Events Visual Basic. NET.
2e – RadioButtons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
 A ListBox control displays a list of items and allows the user to select one or more  Drag from Toolbox to create this control on a form.
Iterations (aka Loops). 2 Loops Loops (iterations) are segments of code that may be executed several times. Fixed-count (definite) loops repeat a fixed.
Transportation Agenda 187. Transportation About Web Parts Web parts are reusable “containers” that reside on web pages and interact with lists, libraries.
Unit 6 Repetition Processing Instructor: Brent Presley.
IMS 3253: Controls 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Check Boxes Radio Buttons Date Time Picker Masked.
Iterations (aka Loops). 2 Loops Loops (iterations) are segments of code (loop body) that may be executed several times. Fixed-count (definite) loops repeat.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
Using Find, Replace, Go To In Microsoft Word By Krysia Biville.
21/03/ Working with Controls Text and List Boxes.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
COMPUTER PROGRAMMING I Apply Procedures to Develop List Box and Combo Box Objects.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
Microsoft Visual Basic 2008: Reloaded Third Edition
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Repeating Program Instructions
Microsoft Visual Basic 2005: Reloaded Second Edition
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.
Lecture Set 10 Windows Controls and Forms
Presentation transcript:

AdditionalControls 1

The MenuStrip 2

Double-click Let’s begin to design the menu bar for VB! Let’s begin to design the menu bar for VB! 3

Radio/Option Buttons 4

Run Program View Code 5

Check Boxes 6

Run Program View Code 7

Note the Following For more string functions: –See page 291 in the text –Visit us/library/aa258891(v=SQL.80).aspxhttp://msdn.microsoft.com/en- us/library/aa258891(v=SQL.80).aspx For methods in the string class: –See page 281 in the text –Visit us/library/system.string_methods.aspxhttp://msdn.microsoft.com/en- us/library/system.string_methods.aspx 8 As noted in the text, string functions are indexed beginning at 1, while string methods are indexed beginning at 0!

Run Program View Code What’s wrong with this example? Even though they are separate, we have ONE set of RadioButtons! 9

GroupBoxes (Frames) 10

Let’s see how to use GroupBoxes to create TWO sets of RadioButtons. 11 Note: We only change the design, the code remains the same!

List Boxes & Combo Boxes 12

Some Methods & Properties Associated with List Boxes & Combo Boxes Add(object) Method Remove (object) Method Clear() Method Items Property (collection of items) Items(index) (0,1,2, …, n-1) SelectedItem Property SelectedIndex Property SelectionMode Property Count Property Sorted Property See page 303 in the textbook for additional properties and methods. 13

Consider the following example Let’s write a program that copies the student name in the Text Box into the List Box. 14

15 Expanding the previous example View Code

Combo Boxes are just List Boxes with a Text Box on top. Be sure you understand how to use the DropdownStyle property to select among the three types. 16

17 Member nameDescription Simple Specifies that the list is always visible and that the text portion is editable. This means that the user can enter a new value and is not limited to selecting an existing value in the list. DropDown Specifies that the list is displayed by clicking the down arrow and that the text portion is editable. This means that the user can enter a new value and is not limited to selecting an existing value in the list. This is the default style. DropDownList Specifies that the list is displayed by clicking the down arrow and that the text portion is not editable. This means that the user cannot enter a new value. Only values already in the list can be selected. As its name implies, this is really a list. DropdownStyle Property options

Consider the following example Let’s look at a program that uses the three Combo Box styles. 18

Read the Description Of Assigment-3 19