Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies

Size: px
Start display at page:

Download "Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies"

Transcription

1 9 Programming Based on Events C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Create applications that use the ListBox control object to enable multiple selections from a single control Contrast ComboBox to ListBox objects by adding both types of controls to an application Add Menu and TabControl control options to Window forms and program their event-handler methods Wire multiple RadioButton and CheckBox object events to a single event-handler method 1

2 ListBox Control Objects Displays list of items for single or multiple selections Scroll bar is automatically added when total number of items exceeds the number that can be displayed Can add or remove items at design time or dynamically at run time Includes number of properties and events The Items property used to set initial values Click on (Collections) to add items Adding a ListBox Control Object Add ListBox control, then click on Items property (Collection) to type entries Figure 9-2 String Collection Editor 2

3 ListBox Control Objects (continued) Name property Useful to set for program statements Sorted property Set to true to avoid having to type values in sorted order Register an event for the ListBox Might want to know when the item selection changes Double-clicking on any control registers its default event for the control SelectedIndexChanged: default event for ListBox ListBox Control Objects (continued) Register its event with the System.EventHandler delegate this.lstboxevents.selectedindexchanged += new System.EventHandler (this.listbox1_selectedindexchanged); Visual Studio adds event-handler method private void listbox1_selectedindexchanged { } (object sender, System.EventArgs e) 3

4 ListBox Control Objects (continued) To retrieve string data from ListBox use Text property this.txtboxresult.text = this.lstboxevents.text; Place in method body When event fires, selection retrieved and stored in TextBox object ListBox Control Objects (continued) Figure 9-3 SelectedIndexChanged event fired 4

5 Multiple Selections with a ListBox SelectionMode Property has values of MultiSimple, MultiExtended, None, and One MultiSimple: use the spacebar and click the mouse MultiExtended can also use Ctrl key, Shift key, and arrow keys foreach(string activity in lstboxevents.selecteditems) { result += activity + " "; } this.txtboxresult.text = result; ListBox Control Objects (continued) Figure 9-4 Multiple selections within a ListBox object 5

6 ListBox Control Objects (continued) SelectedItem and SelectedItems return objects Store numbers in the ListBox, once retrieved as objects, cast the object into an int or double for processing Adding items to a ListBox at run time by using Add( ) method with the Items property lstboxevents.items.add("string value to add"); private void btnnew_click(object sender, System.EventArgs e) { } lstboxevents.items.add(txtboxnewact.text); ListBoxExample Figure 9-5 Add( ) method executed inside the buttonclick event 6

7 ListBox Control Properties 7

8 ListBox Control Methods ListBox Control Methods (continued) Note that ListBox control inherits members from Control class 8

9 ComboBox Controls Extra TextBox object with ComboBox User selects from list or types new value Figure 9-6 ComboBox and ListBox objects ComboBox Controls (continued) Top line left blank in ComboBox when DropDownStyle property is set to DropDown (default setting) Figure 9-7 ComboBox list of choices 9

10 Handling ComboBox Events ComboBox only allows a single selection to be made Default event-handler method: SelectedIndexChanged( ) Same as ListBox control object Could register KeyPress( ) event-handler method BUT, event is fired with each and EVERY keystroke Programming Event Handlers Since ListBox object allows multiple selections, Text property cannot be used Text ONLY gets the first one selected Use the SelectedItems, SelectedIndices, or Items to retrieve a collection of items selected Zero-based structures Access them as you would access an element from an array SelectedIndices is a collection of indexes 10

11 Programming Event Handlers KeyPress( ) eventhandler method fired with each keystroke Figure 9-8 KeyPress and SelectedIndexChanged events fired MenuStrip Controls Offers advantage of taking up minimal space Drag and drop MenuStrip object from toolbox to your form Icon representing MenuStrip placed in Component Tray Select MenuStrip object to set its properties To add the text for a menu option, select the MenuStrip icon and then click in the upper-left corner of the form 11

12 MenuStrip Controls (continued) Drag MenuStrip control to form, then click here to display Menu structure Figure 9-9 First step to creating a menu MenuStrip Control Objects Ampersand (&) is typed between the F and o for the Format option to make Alt+o shortcut for Format Figure 9-10 Creating a shortcut for a menu item 12

13 MenuStrip Control Objects (continued) To create separators, right-click on the text label (below the needed separator) Select Insert Separator Figure 9-11 Adding a separator MenuStrip Control Objects Set the text to be displayed when the cursor is rested on top of the control Figure 9-12 Setting the Property for the ToolTip control 13

14 Wire Methods to Menu Option Event Set the Name property for each menu option Do this first, then wire the event Click events are registered by double-clicking on the Menu option When the menu option is clicked, the event triggers, happens, or is fired Adding Predefined Standard Windows Dialog Boxes Included as part of.net Dialog boxes that look like standard Windows dialog boxes File Open, File Save, File Print, and File Print Preview Format Font Format Color dialogs 14

15 Adding Predefined Standard Windows Dialog Boxes Color private void menucolor_click(object sender, Retrieves the System.EventArgs e) { property setting for the Label colordialog1.color = lbloutput.forecolor; object if (colordialog1.showdialog( )!= DialogResult.Cancel ) { C lb lbloutput.forecolor = colordialog1.color; clicked } } Set to selection made current ForeColor Checks to see if Cancel button CheckBox Objects Appear as small boxes Allow users to make a yes/no or true/false selection Checked property set to either true or false depending on whether a check mark appears or not Default false value CheckChanged( ) default event-handler method Fired when CheckBox object states change Can wire one event handler to multiple objects 15

16 Wiring One Event Handler to Multiple Objects Using Properties window, click on the Events Icon Click the down arrow associated with that event Select method to handle the event Follow the same steps for other objects CheckBox Object Figure 9-17 ComputeCost_CheckedChanged( ) method raised 16

17 GroupBox Objects CheckBox objects may be grouped together for visual appearance Can move or set properties that impact the entire group A GroupBox control should be placed on the form before you add objects GroupBox control adds functionality to RadioButton objects Allow only one selection RadioButton Objects Appear as small circles Give users a choice between two or more options Not appropriate to select more than one CheckBox object with RadioButton objects Group RadioButton objects by placing them on a Panel or GroupBox control Setting the Text property for the GroupBox adds a labeled heading over the group 17

18 RadioButton Objects (example) Figure 9-18 GroupBox and RadioButton objects added RadioButton Objects (continued) Turn selection on this.radinterm.checked = true; Raise a number of events, including Click( ) and CheckedChanged( ) events Wire the event-handler methods for RadioButton objects, just like CheckBox 18

19 RadioButton Objects (continued) Register ComputeCost_CheckedChanged () method Figure 9-19 Wired Click event RadioButton Objects (continued) ComputeCost_CheckedChanged( ) method if (this.radbeginner.checked) { cost +=10; this.lblmsg.text = "Beginner + -- Extra $10 charge"; } else // more statements 19

20 ComputeCost_CheckChanged( ) and Click( ) Events Raised Figure 9-20 ComputeCost_CheckedChanged( ) and Click( ) events raised TabControl Controls Sometime an application requires too many controls for a single screen TabControl object displays multiple tabs, like dividers in a notebook Each separate tab can be clicked to display other options Add a TabControl object to the page by dragging the control from the Container section of the Toolbox 20

21 TabControl Controls (continued) Figure 9-21 Tabbed controlled application TabControl Controls (continued) Figure 9-22 TabControl object stretched to fill form 21

22 TabControl Controls (continued) TabPage property enables you to format individual tabs Clicking the ellipsis beside the Collection value displays the TabPage Collection Editor 22

Chapter 12: Using Controls

Chapter 12: Using Controls Chapter 12: Using Controls Using a LinkLabel LinkLabel Similar to a Label Provides the additional capability to link the user to other sources Such as Web pages or files Default event The method whose

More information

Chapter 12: Using Controls

Chapter 12: Using Controls Chapter 12: Using Controls Examining the IDE s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton A Label has been dragged onto Form1

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

More information

Philadelphia University Faculty of Information Technology. Visual Programming

Philadelphia University Faculty of Information Technology. Visual Programming Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji Work Sheet 1 Form, Buttons and labels Properties Changing properties

More information

Keeping Track, Menus. CSC 330 Object-Oriented Programming 1

Keeping Track, Menus. CSC 330 Object-Oriented Programming 1 Keeping Track, Menus CSC 330 Object-Oriented Programming 1 Chapter Objectives Keeping Track Create menus and submenus for program control Display and use the Windows common dialog boxes Create context

More information

CST242 Windows Forms with C# Page 1

CST242 Windows Forms with C# Page 1 CST242 Windows Forms with C# Page 1 1 2 4 5 6 7 9 10 Windows Forms with C# CST242 Visual C# Windows Forms Applications A user interface that is designed for running Windows-based Desktop applications A

More information

CIS 3260 Intro to Programming with C#

CIS 3260 Intro to Programming with C# Menus and Common Dialog Boxes McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Create menus and submenus for program control Display and use the Windows common dialog boxes McGraw-Hill

More information

Interface Design in C#

Interface Design in C# Interface Design in C# Project 1: Copy text from TextBox to Label as shown in the figure. TextBox and Label have the same property: display.text = nameentry.text; private void nameentry_textchanged display.text

More information

DateTimePicker Control

DateTimePicker Control Controls Part 2 DateTimePicker Control Used for representing Date/Time information and take it as input from user. Date information is automatically created. Prevents wrong date and time input. Fundamental

More information

Click File on the menu bar to view the individual menu items and their associated icons on the File menu.

Click File on the menu bar to view the individual menu items and their associated icons on the File menu. User Interface Design 387 STEP 3 Click File on the menu bar to view the individual menu items and their associated icons on the File menu. The standard File menu items (New, Open, Save, Save As, Print,

More information

Overview Describe the structure of a Windows Forms application Introduce deployment over networks

Overview Describe the structure of a Windows Forms application Introduce deployment over networks Windows Forms Overview Describe the structure of a Windows Forms application application entry point forms components and controls Introduce deployment over networks 2 Windows Forms Windows Forms are classes

More information

Dive Into Visual C# 2010 Express

Dive Into Visual C# 2010 Express Dive Into Visual C# 2010 Express 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools.

More information

You will have mastered the material in this chapter when you can:

You will have mastered the material in this chapter when you can: CHAPTER 6 Loop Structures OBJECTIVES You will have mastered the material in this chapter when you can: Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand

More information

Controls. By the end of this chapter, student will be able to:

Controls. By the end of this chapter, student will be able to: Controls By the end of this chapter, student will be able to: Recognize the (Properties Window) Adjust the properties assigned to Controls Choose the appropriate Property Choose the proper value for the

More information

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 5 Repeating Program Instructions Objectives After studying this chapter, you should be able to: Include the repetition structure in pseudocode

More information

WinForms Applications

WinForms Applications Agenda WinForms Applications Writing native Windows programs Tuesday, November 2, 2004 1 PWindows Applications PEvents and event handlers PLayered (tiered) model of software PFocus PForm designer and controls

More information

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets-

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets- Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji 2018 Work Sheet 1 Hello World! 1. Create a New Project, Name

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

C# Programming: From Problem Analysis to Program Design. Fourth Edition

C# Programming: From Problem Analysis to Program Design. Fourth Edition C# Programming: From Problem Analysis to Program Design Fourth Edition Preface xxi INTRODUCTION TO COMPUTING AND PROGRAMMING 1 History of Computers 2 System and Application Software 4 System Software 4

More information

SMART Recorder. Record. Pause. Stop

SMART Recorder. Record. Pause. Stop SMART Recorder The recorder is used to record actions that are done on the interactive screen. If a microphone is attached to the computer, narration can be recorded. After the recording has been created,

More information

Full file at https://fratstock.eu Programming in Visual Basic 2010

Full file at https://fratstock.eu Programming in Visual Basic 2010 OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,

More information

Unit 3 Additional controls and Menus of Windows

Unit 3 Additional controls and Menus of Windows Working with other controls of toolbox: DateTime Picker If you want to enable users to select a date and time, and to display that date and time in the specified format, use the DateTimePicker control.

More information

B.V Patel Institute of BMC & IT, UTU

B.V Patel Institute of BMC & IT, UTU Corse Code and Corse Name: 030010401-GUI Programming Unit 1. Introduction to.net Framework Short Questions 1. What is.net Framework? 2. What is VB.NET? 3. Which are the main components of.net Framework?

More information

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures Microsoft Visual Basic 2005 CHAPTER 6 Loop Structures Objectives Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand the use of counters and accumulators Understand

More information

Introductionto the Visual Basic Express 2008 IDE

Introductionto the Visual Basic Express 2008 IDE 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools. Henri-Louis Bergson Introductionto

More information

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions 5-menus.htm; updated September 12, 2011 Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions Coverage: This chapter covers several important topics: (1) use of menus and context

More information

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment. IT3101 -Rapid Application Development Second Year- First Semester Practical 01 Visual Basic.NET Environment. Main Area Menu bar Tool bar Run button Solution Explorer Toolbox Properties Window Q1) Creating

More information

Changing Button Images in Microsoft Office

Changing Button Images in Microsoft Office Changing Button Images in Microsoft Office Introduction This document deals with creating and modifying the button images used on Microsoft Office toolbars. Rarely is there a need to modify a toolbar button

More information

Forms/Distribution Acrobat X Professional. Using the Forms Wizard

Forms/Distribution Acrobat X Professional. Using the Forms Wizard Forms/Distribution Acrobat X Professional Acrobat is becoming a standard tool for people and businesses to use in order to replicate forms and have them available electronically. If a form is converted

More information

Web Accessibility Change Your Mouse Pointer Visibility Handbook

Web Accessibility Change Your Mouse Pointer Visibility Handbook Web Accessibility Change Your Mouse Pointer Visibility Handbook H2O Power is committed to providing our services in a way that respects the dignity and independence of persons with disabilities. H2O power

More information

Location of menu elements

Location of menu elements E Creating Menus Appendix E C5779 39147 Page 1 07/10/06--JHR In Visual Basic 2005, you use a MenuStrip control to include one or more menus in an application. You instantiate a MenuStrip control using

More information

Creating Web Applications Using ASP.NET 2.0

Creating Web Applications Using ASP.NET 2.0 12 Creating Web Applications Using ASP.NET 2.0 12 Chapter CXXXX 39147 Page 1 07/14/06--JHR After studying Chapter 12, you should be able to: Define the terms used when talking about the Web Create a Web

More information

List and Value Controls

List and Value Controls List and Value Controls Sorting in List-Based Controls You can sort the objects displayed in a list-based control by setting the Sorted property to True, as shown here: listbox1.sorted = true; Setting

More information

ComponentOne. TouchToolkit for WinForms

ComponentOne. TouchToolkit for WinForms ComponentOne TouchToolkit for WinForms ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Website: http://www.componentone.com Sales: sales@componentone.com

More information

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1 Part 1 Visual Basic: The Language Chapter 1: Getting Started with Visual Basic 2010 Chapter 2: Handling Data Chapter 3: Visual Basic Programming Essentials COPYRIGHTED MATERIAL Chapter 1 Getting Started

More information

Working with PDF s. To open a recent file on the Start screen, double click on the file name.

Working with PDF s. To open a recent file on the Start screen, double click on the file name. Working with PDF s Acrobat DC Start Screen (Home Tab) When Acrobat opens, the Acrobat Start screen (Home Tab) populates displaying a list of recently opened files. The search feature on the top of the

More information

EPSON RC+ 7.0 Option. GUI Builder 7.0 EM145A2719F. Rev. 2

EPSON RC+ 7.0 Option. GUI Builder 7.0 EM145A2719F. Rev. 2 EPSON RC+ 7.0 Option GUI Builder 7.0 Rev. 2 EM145A2719F EPSON RC+ 7.0 Option GUI Builder 7.0 Rev.2 EPSON RC+ 7.0 Option GUI Builder 7.0 Rev.2 Copyright 2012-2014 SEIKO EPSON CORPORATION. All rights reserved.

More information

Windows 7 Control Pack for WinForms

Windows 7 Control Pack for WinForms ComponentOne Windows 7 Control Pack for WinForms By GrapeCity, Inc. Copyright 1987-2012 GrapeCity, Inc. All rights reserved. Corporate Headquarters ComponentOne, a division of GrapeCity 201 South Highland

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

Creating Your Own Documents in RealtiWeb

Creating Your Own Documents in RealtiWeb Creating Your Own Documents in RealtiWeb This feature will allow you to create and save customized documents in addition to the standard documents provided in RealtiWeb. 1. Once logged into RealtiWeb,

More information

Word Tips & Tricks. Status Bar. Add item to Status Bar To add an itme to the status bar, click on the item and a checkmark will display.

Word Tips & Tricks. Status Bar. Add item to Status Bar To add an itme to the status bar, click on the item and a checkmark will display. Status Bar The status bar is located on the bottom of the Microsoft Word window. The status bar displays information about the document such as the current page number, the word count in the document,

More information

Note that each button has a label, specified by the Text property of the button. The Text property of the group box is also visible as its title.

Note that each button has a label, specified by the Text property of the button. The Text property of the group box is also visible as its title. Radio Buttons and List Boxes The plan for this demo is to have a group of two radio buttons and a list box. Which radio button is selected will determine what is displayed in the list box. It will either

More information

Your First Windows Form

Your First Windows Form Your First Windows Form From now on, we re going to be creating Windows Forms Applications, rather than Console Applications. Windows Forms Applications make use of something called a Form. The Form is

More information

Introduction to using Visual Studio 2010 to build data-aware applications

Introduction to using Visual Studio 2010 to build data-aware applications CT5805701 Software Engineering in Construction Information System Dept. of Construction Engineering, Taiwan Tech Introduction to using Visual Studio 2010 to build data-aware applications Yo Ming Hsieh

More information

Routing a BennyBuy Access Form Using DocuSign

Routing a BennyBuy Access Form Using DocuSign Routing a BennyBuy Access Form Using DocuSign Become a DocuSign sender If you have not already done so, review the overview, signing and sending videos on the Resources/Senders page of the OSU DocuSign

More information

Pelnor Help Add-in.

Pelnor Help Add-in. Pelnor Help Add-in http://www.pelnor.com/ Pelnor Software Index HelpAddIn 1 Pelnor Help Add-in UserControl... 1 Node Editor...7 URL Link Dialog...10 Inner Document Link Selection Dialog... 11 Help Document

More information

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com, info@nicelabel.com English Edition Rev-0910 2009 Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com Head Office Euro Plus d.o.o. Ulica Lojzeta Hrovata

More information

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol Designing User Interface-2 Unit 3 Designing User Interface-2 Lesson 3.1-3 TreeView Control A TreeView control is designed to present a list in a hierarchical structure. It is similar to a directory listing.

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

More information

Chapter 13: Handling Events

Chapter 13: Handling Events Chapter 13: Handling Events Event Handling Event Occurs when something interesting happens to an object Used to notify a client program when something happens to a class object the program is using Event

More information

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear.

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. 4 Programming with C#.NET 1 Camera The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. Begin by loading Microsoft Visual Studio

More information

Using the Customize Dialog Box

Using the Customize Dialog Box Toolbar Tools > Customize Using the Customize Dialog Box The Customize tool is used to define custom work environment, toolbar, and tool settings. The Customize dialog box appears when you access the Customize

More information

1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart?

1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart? 1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart? 6. Define Visual Basic.NET? 7. Define programming language?

More information

Chapter 3. Fundamentals of Programming in Visual Basic

Chapter 3. Fundamentals of Programming in Visual Basic Page 1 of 114 [Page 41] Chapter 3. Fundamentals of Programming in Visual Basic (This item omitted from WebBook edition) 3.1 Visual Basic Controls 42 Starting a New Visual Basic Program A Text Box Walkthrough

More information

Introduction to Programming. Writing Programs Syntax, Logic and Run-time Errors

Introduction to Programming. Writing Programs Syntax, Logic and Run-time Errors Introduction to Programming Writing Programs Syntax, Logic and Run-time Errors Error Types in Visual Basic There are three main types of errors that can occur while programming in Visual Basic. Knowing

More information

Learn the three palettes. Learn how data is passed in LabVIEW. Create a subvi using two different methods.

Learn the three palettes. Learn how data is passed in LabVIEW. Create a subvi using two different methods. UNM The LabVIEW Programming Environment and Basic Operations Introduction In this hands-on, you will learn about the LabVIEW programming environment. You will also write a simple Virtual Instrument (VI)

More information

WORD XP/2002 USER GUIDE. Task- Formatting a Document in Word 2002

WORD XP/2002 USER GUIDE. Task- Formatting a Document in Word 2002 University of Arizona Information Commons Training Page 1 of 21 WORD XP/2002 USER GUIDE Task- Formatting a Document in Word 2002 OBJECTIVES: At the end of this course students will have a basic understanding

More information

Menus. You ll find MenuStrip listed in the Toolbox. Drag one to your form. Where it says Type Here, type Weather. Then you ll see this:

Menus. You ll find MenuStrip listed in the Toolbox. Drag one to your form. Where it says Type Here, type Weather. Then you ll see this: Menus In.NET, a menu is just another object that you can add to your form. You can add objects to your form by drop-and-drag from the Toolbox. If you don t see the toolbox, choose View Toolbox in the main

More information

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location

More information

Menus and Printing. Menus. A focal point of most Windows applications

Menus and Printing. Menus. A focal point of most Windows applications Menus and Printing Menus A focal point of most Windows applications Almost all applications have a MainMenu Bar or MenuStrip MainMenu Bar or MenuStrip resides under the title bar MainMenu or MenuStrip

More information

CHAPTER 3. Writing Windows C# Programs. Objects in C#

CHAPTER 3. Writing Windows C# Programs. Objects in C# 90 01 pp. 001-09 r5ah.ps 8/1/0 :5 PM Page 9 CHAPTER 3 Writing Windows C# Programs 5 9 Objects in C# The C# language has its roots in C++, Visual Basic, and Java. Both C# and VB.Net use the same libraries

More information

UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS

UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS 1 SYLLABUS 3.1 Working with other controls of toolbox : 3.1.1 Date Time Picker 3.1.2 List Box 3.1.2.1 Item collection 3.1.3 Combo Box 3.1.4 Picture Box 3.15

More information

Understanding Events in C#

Understanding Events in C# Understanding Events in C# Introduction Events are one of the core and important concepts of C#.Net Programming environment and frankly speaking sometimes it s hard to understand them without proper explanation

More information

Document Editor Features Available in HTML5. it just makes sense

Document Editor Features Available in HTML5. it just makes sense Document Editor Features Available in HTML5 it just makes sense March, 2018 Document Editor Features Available in HTML5 As part of the 5.2 release, the Document Editor is now available in HTML5 and provides

More information

CIS 3260 Intro. to Programming with C#

CIS 3260 Intro. to Programming with C# Running Your First Program in Visual C# 2008 McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Run Visual Studio Start a New Project Select File/New/Project Visual C# and Windows must

More information

Dive Into Visual C# 2008 Express

Dive Into Visual C# 2008 Express 1 2 2 Dive Into Visual C# 2008 Express OBJECTIVES In this chapter you will learn: The basics of the Visual Studio Integrated Development Environment (IDE) that assists you in writing, running and debugging

More information

SIMPLE TEXT LAYOUT FOR COREL DRAW. When you start Corel Draw, you will see the following welcome screen.

SIMPLE TEXT LAYOUT FOR COREL DRAW. When you start Corel Draw, you will see the following welcome screen. SIMPLE TEXT LAYOUT FOR COREL DRAW When you start Corel Draw, you will see the following welcome screen. A. Start a new job by left clicking New Graphic. B. Place your mouse cursor over the page width box.

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening

More information

Computer Science 110. NOTES: module 8

Computer Science 110. NOTES: module 8 Computer Science 110 NAME: NOTES: module 8 Introducing Objects As we have seen, when a Visual Basic application runs, it displays a screen that is similar to the Windows-style screens. When we create a

More information

Switches between worksheet and menu / Ribbon. Calculates all worksheets in all open workbooks. Highlights shortcut keys of Menu and Ribbon items.

Switches between worksheet and menu / Ribbon. Calculates all worksheets in all open workbooks. Highlights shortcut keys of Menu and Ribbon items. Check for updates http://www.excelbee.com/all-excel-shortcuts/ Shortcut with Function Key Function Keys Description F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Open "Microsoft Office Excel Help". Edit an Excel

More information

Introduction to Word 2010

Introduction to Word 2010 Introduction to Word 2010 Screen Elements 4 1 2 3 5 10 6 7 8 9 1. File Tab: The File tab will bring you into the Backstage View. The Backstage View is where you manage your files and the data about them

More information

Chapter 2 Visual Basic Interface

Chapter 2 Visual Basic Interface Visual Basic Interface Slide 1 Windows GUI A GUI is a graphical user interface. The interface is what appears on the screen when an application is running. A GUI is event-driven, which means it executes

More information

Windows Programming Using C#

Windows Programming Using C# Contents Windows Programming Using C# Menus TreeView TabControl MenuStrip 2 Main Menu Menus (mnu prefix) Menus provide groups of related commands for Windows applications Main menu is the control that

More information

Excel Tables & PivotTables

Excel Tables & PivotTables Excel Tables & PivotTables A PivotTable is a tool that is used to summarize and reorganize data from an Excel spreadsheet. PivotTables are very useful where there is a lot of data that to analyze. PivotTables

More information

Creating Accessible Documents in Adobe Acrobat Pro 9

Creating Accessible Documents in Adobe Acrobat Pro 9 Creating Accessible Documents in Adobe Acrobat Pro 9 Create an Electronic Copy of the Book 1. Remove the binding from the book so it can be placed in an automatic document feeder. This requires a fairly

More information

INTRODUCTION TO VISUAL BASIC 2010

INTRODUCTION TO VISUAL BASIC 2010 INTRODUCTION TO VISUAL BASIC 2010 Microsoft Visual Basic is a set of programming tools that allows you to create applications for the Windows operating system. With Visual Basic, even a beginner can create

More information

Client Editor Features

Client Editor Features Client Editor Features New, Simplified design with more great features all in one place! New Product Selection Feature Enhanced Notebook for Highlighted Client Easy to use Client Toolbar for Selected Clients

More information

Exercises for Delphi Advanced Programming Technology (English Version)

Exercises for Delphi Advanced Programming Technology (English Version) Exercises for Delphi Advanced Programming Technology (English Version) School: School of Information Engineering Department: Department of Electronic and Information Engineering Author: Sun Zhaoyun Exercises

More information

Mailing Labels from REARS

Mailing Labels from REARS Mailing Labels from REARS Generating mailing labels from REARS is an easy and efficient way to prospect and market to property owners. In this tutorial, we will take you through the process of generating

More information

Microsoft PowerPoint 2007 Beginning

Microsoft PowerPoint 2007 Beginning Microsoft PowerPoint 2007 Beginning Educational Technology Center PowerPoint Presentations on the Web... 2 Starting PowerPoint... 2 Opening a Presentation... 2 Microsoft Office Button... 3 Quick Access

More information

CUSTOMISE FIELDS AND LAYOUTS 2010

CUSTOMISE FIELDS AND LAYOUTS 2010 CUSTOMISE FIELDS AND LAYOUTS 2010 CUSTOMIZE YOUR FIELDS AND LAYOUTS Step 1 Define your fields Step 2 Customize your layouts Note: Changing the name of a field in the Define Fields box does not change the

More information

Microsoft Office Excel 2003

Microsoft Office Excel 2003 Microsoft Office Excel 2003 Tutorial 1 Using Excel To Manage Data 1 Identify major components of the Excel window Excel is a computerized spreadsheet, which is an important business tool that helps you

More information

OpenStax-CNX module: m Thermometer VI * National Instruments

OpenStax-CNX module: m Thermometer VI * National Instruments OpenStax-CNX module: m12209 1 Thermometer VI * National Instruments This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 1.0 Exercise 1 Complete the following

More information

Getting Started The Application Window Office Office 2003 Application Window cont d

Getting Started The Application Window Office Office 2003 Application Window cont d Introduction to Microsoft Word at the Library a 2 Hour Course for Beginners Class goals & Objectives By the end of this session participants will: Be familiar with the components of the MS Word application

More information

SPARK. User Manual Ver ITLAQ Technologies

SPARK. User Manual Ver ITLAQ Technologies SPARK Forms Builder for Office 365 User Manual Ver. 3.5.50.102 0 ITLAQ Technologies www.itlaq.com Table of Contents 1 The Form Designer Workspace... 3 1.1 Form Toolbox... 3 1.1.1 Hiding/ Unhiding/ Minimizing

More information

WinForms Charts How to Determine the Chart Element underneath. the Mouse Cursor and Display Series Point s Data in a Tooltip

WinForms Charts How to Determine the Chart Element underneath. the Mouse Cursor and Display Series Point s Data in a Tooltip WinForms Charts How to Determine the Chart Element underneath the Mouse Cursor and Display Series Point s Data in a Tooltip As a developer, sometimes you need to make your application more interactive.

More information

WEEK NO. 12 MICROSOFT EXCEL 2007

WEEK NO. 12 MICROSOFT EXCEL 2007 WEEK NO. 12 MICROSOFT EXCEL 2007 LESSONS OVERVIEW: GOODBYE CALCULATORS, HELLO SPREADSHEET! 1. The Excel Environment 2. Starting A Workbook 3. Modifying Columns, Rows, & Cells 4. Working with Worksheets

More information

Introduction to PowerPoint 2007

Introduction to PowerPoint 2007 Introduction to PowerPoint 2007 PowerPoint is one of the programs included in the Microsoft Office suite. It s used to create presentations, also called slide shows, that are typically displayed via a

More information

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events Working with Form: properties, methods and events To create a New Window Forms Application, Select File New Project. It will open one dialog box which is shown in Fig 2.1. Fig 2.1 The New Project dialog

More information

SharePoint SITE OWNER TRAINING

SharePoint SITE OWNER TRAINING SharePoint SITE OWNER TRAINING Contents Customizing Your Site... 3 Editing Links...4 Give the site a new look...5 Changing Title, Description, or Logo...6 Remove the Getting Started Icons...6 Adding Apps

More information

DATABASE VIEWER PLUS FOR IPAD: USER GUIDE PRODUCT VERSION: 4.1

DATABASE VIEWER PLUS FOR IPAD: USER GUIDE PRODUCT VERSION: 4.1 DATABASE VIEWER PLUS FOR IPAD: USER GUIDE PRODUCT VERSION: 4.1. CONTENTS User Guide 1 INTRODUCTION...5 1.1 FEATURES...5 2 INSTALLATION...6 2.1 DESKTOP INSTALLATION...6 2.2 IPAD INSTALLATION:...10 3 USING

More information

INFRAGISTICS WPF 15.2 Service Release Notes September 2016

INFRAGISTICS WPF 15.2 Service Release Notes September 2016 INFRAGISTICS WPF 15.2 Service Release Notes September 2016 Raise the Bar on Both BI and Desktop UI with Infragistics WPF Controls Infragistics WPF controls provide breadth and depth in enabling developers

More information

A Second Visual BASIC Application : Greetings

A Second Visual BASIC Application : Greetings The Greetings Program A Second Visual BASIC Application : Greetings The following instructions take you through the steps to create a simple application. A greeting is displayed in one of four different

More information

C# Windows Forms Applicaton Tutorial with Example

C# Windows Forms Applicaton Tutorial with Example C# Windows Forms Applicaton Tutorial with Example So far we have seen how to work with C# to create console based applications. But in a real-life scenario team normally use Visual Studio and C# to create

More information

Full file at Chapter 2: Creating a User Interface

Full file at   Chapter 2: Creating a User Interface Chapter 2: Creating a User Interface TRUE/FALSE 1. Text boxes accept and display information automatically, so no special event is necessary for them to do their assigned task. T PTS: 1 REF: 84 2. A button

More information

MAIL MERGE USING MS WORD 97

MAIL MERGE USING MS WORD 97 MAIL MERGE USING MS WORD 97 What is a Mail Merge? A mail merge allows the user to mass-produce documents such as letters and/or memoranda so that they appear personalized. Mail merge may also be used to

More information

How To Capture Screen Shots

How To Capture Screen Shots What Is FastStone Capture? FastStone Capture is a program that can be used to capture screen images that you want to place in a document, a brochure, an e-mail message, a slide show and for lots of other

More information