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.

Slides:



Advertisements
Similar presentations
(MICROSOFT EXCEL). Is a spreadsheet application designed to take advantage of the windows graphical interface MICROSOFT EXCEL.
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Click on the “LABELS” button (this is a ‘toggle’ button,. Click once to turn on, second time to turn off) ** This Screen will NOT CHANGE ** You have selected.
Using Macros and Visual Basic for Applications (VBA) with Excel
Using Multiple Forms! Creating a Splash Screen. Uses of Multiple Forms Includes: Dialog Boxes (appear often in Windows Programs) Splash Screen (a window.
Creating Custom Reports. 2 Design and create a custom report You can easily create custom reports based on a table or query. There are seven sections.
MAPPING A New IntefaceXpress Feature. MAPS Maps by Google are now available through IntefaceXpress Maps by Google are now available through IntefaceXpress.
1 Round 6 Technology CAD / CAM. 2 Passport Photo Frame Drawing Area Draw / Edit Toolbox Drawing Aids Toolbox Position, Size and Direction Information.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 بسم الله الرحمن الرحيم Palestine Polytechnic University College of Administrative science and.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Mastering Your Word Processing Skills
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 3 Working with Symbols and Interactivity.
Tutorial 11 Introduction to Visual Basic zLanguage developed for special-purpose Windows applications – 1991 zUses IDE – Integrated Development Environment.
Lab 9 – User Forms Design. User Forms What are user forms? –Known as dialog boxes –Major ways for getting user input An example of using user forms: Monthly.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Microsoft Expression Web-Illustrated Unit I: Working with Tables.
Microsoft Access Data Base Application. A Few Terms Database – A collection of related information. Database – A collection of related information. Field.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Macromedia Dreamweaver 4.0 INTERFACE This presentation will run automatically.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
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.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
1 PowerPoint II Slide Transitions, Animations, and Links.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
Lesson 4 Mathematical Operators! October 6, 2009.
1.Begin by opening VB 2.Click New Project or the icon Hello World Tutorial NOTE: depending on your version of VB – the images might be slightly different.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
How to create with the Photoshop Stamp tool?. The Photoshop Stamp Tool Allows you to create new visual elements inside of an image Has Two Tool Options.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Paint Tutorial Created February 2006 Start Paint: Start>Programs>Accessories>Paint.
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
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.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
21/03/ Working with Controls Text and List Boxes.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Visual Basic.NET BASICS Lesson 9 Nested If Statements and Radio Buttons.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
SolidWorks Justin Drummond. 1.Draw a shape on a plane and save the sketch (should turn grey). 2. Pick a new plane that is perpendicular to the previous.
Computing and Information Technology Building a Web Browser
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Excel Tutorial 8 Developing an Excel Application
Open a BLANK WORD document
Microsoft Excel Illustrated
Visual Studio 2010 Hello World CSC 230.
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Access Project 8 Using Visual Basic for Applications (VBA) and Creating Multi-Page Forms.
Chapter 1 - An Introduction to Computers and Problem Solving
Formatting a Worksheet
Microsoft Office Access 2003
Signature: Microsoft Word 2003
Visual Studio 2010 Hello World CSC 230.
Визуалды бағдарламалау ортасы.
Working with Symbols and Interactivity
Group Boxes, Radio buttons and Checked List Boxes
Introduction to Visual Basic 2010
CHAPTER FOUR VARIABLES AND CONSTANTS
Boardmaker Dynamic Boards
Presentation transcript:

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 called radio buttons.

There are three steps involved: 1. Create a frame to group the option buttons. 2. Create the option buttons in the frame. 3. Write code to use the option buttons.

Creating a Frame Control What is a Frame Control? Is a container for other controls. The controls that you place inside a frame are treated as one unit. If you move the frame, the controls in the frame move with it. If you delete the frame, the controls in the frame are deleted along with the frame.

Important Note! It is important to create a frame that will contain the option buttons before you create the option button themselves.

Option Group Are option buttons in a frame!

Two Frame Properties! The name property allows you to associate a name with the object in Visual Basic. The caption property specifies the text that will appear at the top of the frame.

Example Program! Open VB and create the following screen.

Double click the Frame control from the toolbox. A frame appears in the center of the form. Change the Name property of the frame to fraPlanets and change the Caption property to Choose a planet.

Creating Option Buttons in the Frame Important: When you create option buttons, click the Option Button tool from the toolbox and drag within the frame to create the option button. If you double click the Option Button tool, the option button that is created will not be associated with the frame, even if it appears to be in the frame.

Click the Option Button control from the toolbox. Position the mouse pointer inside the frame. Drag to draw an option button inside the frame about ¼ inch tall and 1 ½ inches wide (1215 x 244). Create three more identical option buttons inside the frame.

Option buttons need to be named! Use the Name property to name your buttons. The caption property of an option button is similar to the Caption property of a checkbox. The caption property specifies the text for the attached label.

Select the first option button. Change the Name property to optMars and change the Caption property to Mars. Set the properties of the remaining option buttons as follows: NameCaption optJupiterJupiter optSaturnSaturn optPlutoPluto

Run the program. Click each of the option buttons to see that they are operating correctly. End and save the program. We will continue tomorrow!

HOMEWORK! Pick up your worksheet before you leave.