MsgBox, Input Box Functions Check boxes, radio button MsgBox, Input Box Functions Lab 3 3 Ismail M. Romi: PPU- IT Dept.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Select Case Statements and Selection Input.
Advertisements

Controls in VB Unit 2. Message box One of the best functions in Visual Basic is the message box. The message box displays a message, optional icon, and.
Chapter 1: An Introduction to Visual Basic 2012
Microsoft Visual Basic: Reloaded Chapter Five More on the Selection Structure.
Chapter 3.1 Controls Programming In Visual Basic.NET.
Chapter 2 More Controls Programming In Visual Basic.NET.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Text Box controls are used when users are required to type some input (during program execution), or output is displayed on the form (known as the user-
9 Copyright © 2004, Oracle. All rights reserved. Creating Additional Input Items.
Chapter 2 More Controls Programming In Visual Basic.NET.
Input Validation Check the values entered into a text box before beginning any calculations Validation is a form of ‘self-protection’, rejecting bad data.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab3 Check Boxes,Option Buttons Frame Control Frame Control MsgBox, InputBox Functions Day7.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab2 Managing Controls.
Introduction To Form Builder
Chapter 2 User Interface Design Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Slide 1 VB Default Controls Text Box, Check Box, Option Button & Frames.
MsgBox Function Displays one of Visual Basic’s predefined dialog boxes, which contains a message, one or more command buttons, and an icon After displaying.
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)
Access Tutorial 10 Automating Tasks with Macros
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 2 User Interface Design Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Chapter 2 More Controls Programming in C#. NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Graphical User Interfaces 2 Tonga Institute of Higher Education.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
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.
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.
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.
More User Interface Controls User interface controls are located in the toolbox. Click the +/- signs to open/ close the different tabs of the tollbox.
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 2 User Interface Design.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 2 User Interface Design.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 2 More Controls.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
ME 142 Engineering Computation I Input, Output & Documentation.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
Chapter 2 More Controls Programming in C#. NET Objectives Use text boxes, group boxes, check boxes, radio buttons, and picture boxes effectively.
Controlling Program Flow with Looping Structures
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
© by Pearson Education, Inc. All Rights Reserved.-Edited By Maysoon Al-Duwais 2.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
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,
Copyright © Don Kussee 1410-Ch5 #1031 CNS 1120 Chapter 5 Selection statements 1120-Ch5.PPT.
TOOLBOX. The Toolbox Intrinsic Controls - always included in the Toolbox ActiveX Controls - separate files with ocx file extension Insertable Objects.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Chapter 6 Controlling Program Flow with Looping Structures.
Chapter 2 More Controls Programming In C Shap. © Controls in the Toolbox.
Copyright Ó Oracle Corporation, All rights reserved. 88 Creating Additional Input Items.
Hamilton Software Products The Measure of Excellence Customized dialog.
Graphical User Interface Concepts - Part 1 Session 08 Mata kuliah: M0874 – Programming II Tahun: 2010.
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Standard Controls.
Module 2 إنشاء تطبيقات الويندوز
Additional Topics in VB.NET
Brief description on how to navigate within this presentation (ppt)
Introduction to Programming
Programming In Visual Basic.NET
Chapter 2 User Interface Design
CHAPTER FOUR VARIABLES AND CONSTANTS
Chapter 4 Enhancing the Graphical User Interface
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

MsgBox, Input Box Functions Check boxes, radio button MsgBox, Input Box Functions Lab 3 3 Ismail M. Romi: PPU- IT Dept

Check Box Allows the user to select or deselect one or more items in any group Checked property Checked = True Unchecked = False Text property for the text you want to appear next to the box

Radio Button A control used to permit the selection of one option from several choices Radio buttons appears in groups ( two or more) to represent mutually exclusive choices (one button in the group always selected) Radio buttons can be grouped by placing them in a frame Checked property: Selected = True / Unselected = False Text property What is displayed next to the radio button

Group Box Used as containers for other controls such as radio buttons and check boxes Improves readability of form by separating the controls into logical groups

Borders and Styles Most controls can appear to be three-dimensional or flat Labels, text boxes, and pictures boxes all have a BorderStyle property with different style choices including: None FixedSingle Fixed3D properties can be changed to the style of choosing

Setting the Form's Screen Location You can set the form’s screen position by setting the StartPositionproperty of the form To center a form on the user’s screen, set the StartPosition property to CenterScreen

MsgBox() Function A function that produces a message box. Message Box: A small dialog box used for output during a program’s execution.

Syntax IntResponse=MsgBox(“prompt”[, Buttons][,Title] IntResponse: Integer return value from MsgBox function (1: OK, 2: Cancel, 3: Abort, 4: Retry, 5:Ignore, 6:Yes, 7: No)

InputBox( ) Function A message box with a field, in which the user can type a value.

Syntax: Var = InputBox(prompt [,MsgBoxTitle][,Title][,DefaultVal][,Xpos][,Ypos]) Example: stdName = InputBox("enter student name", "student record", "ali", 100, 200)

Creating ToolTips Small label that is displayed when user pauses mouse pointer over a control Add a ToolTip Control to Form The new control appears in a new pane, Component Tray that opens at the bottom of the Form Designer After you add the component to your form, each of the form’s controls has a new property Select ToolTip on ToolTip1 property of each control and add Tool Tip comments

Changing the Color of Text ForeColor and BackColor Properties Use VB Color Constants from the Color Class Type the keyword Color and a period in the editor to view a full color list nameTextBox.ForeColor = Color.Red messageLabel.ForeColor = Color.White

Lab Training Questions: You have the following data for student record: Student number, Student name, Major (IS, IT, Graphics), Courses: (Arabic: 2 credit hours, English 3 credit hours, VB: 3 credit hours). Design a VB project to accept student data and grades, then calculate the average. Notes:- After calculation, prevent any change to the entered data. - Use msgbox function and input box function where required.