Creating an event driven computer program using C# Level 2 Notes for City & Guilds 7540 Unit 008 Written for Microsoft Visual C# 2005 Express
|
|
- Ariel Lyons
- 6 years ago
- Views:
Transcription
1 Creating an event driven computer program using C# Level 2 Notes for City & Guilds 7540 Unit 008 Written for Microsoft Visual C# 2005 Express Version 1
2 Tench Computing Ltd Pines Glendale Road Burgess Hill West Sussex RH15 0EJ Web address: address: About the author: Jackie Tench MSc, ACIB, Cert Ed Jackie started her working career in branch banking with the Midland Bank (now HSBC) and was transferred to their Computing Department after achieving 100% in their ability test for programmers. She then worked for more than a decade in this department and was one of the first women to achieve a junior management grade at the age of 21. She attended a significant number of IBM programming training courses during her time there. Jackie was the first woman to pass the ACIB (Associate Chartered Institute of Bankers) examinations in the Midland Bank (HSBC) and the youngest person at 21 years of age. Jackie then left to raise a family but still found time to teach part-time at a college in Sheffield and to obtain a MSc in Computing and a Cert Ed in teaching. When her children were old enough Jackie returned to work full-time and was a Senior Lecturer in Software Engineering and Computer Studies at a college in Brighton for nearly 10 years teaching all levels up to and including HND. Therefore, Jackie has considerable business knowledge and qualifications plus wide experience in practical computing and training covering areas such as structured design, analysis, coding, testing and implementing software applications plus training students to fulfil an important role in the computer industry. Jackie has worked as a consultant for several blue chip companies and examination boards using her software engineering and educational training skills and is now one of the foremost experts in computing with an extensive knowledge of programming languages and applications. Copyright 1999 Tench Computing Ltd Microsoft, Windows, Windows NT or other Microsoft products referenced herein are either the trademarks or registered trademarks of the Microsoft Corporation. Other trademarks for products referenced herein are also acknowledged. All rights are reserved and no part of this training manual may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the purchase of a licence. This training manual is sold subject to licence and on condition that it shall not, by way of trade or otherwise, be lent, re-sold, hired out or otherwise circulated without the prior consent of Tench Computing Ltd in any form of binding or cover other than that in which it is issued and without a similar condition being imposed on the subsequent purchaser. Any program listings within this training manual may be entered, stored and executed in a computer but they may not be reproduced for publication. Version 1
3 Contents Page C# development environment... 1 Toolbars Standard toolbar... 3 Toolbox... 5 Components of a program Event functions... 9 Solution Explorer... 9 Form Design Window Code Window Properties Window Chapter 2 Objectives Demo program Create a new project Rename and save the form file Solution Explorer window Change the property of the form Properties Change the Name property of the form Change the size of the form Save the files Add the Exit button to the frmdemo form Toolbox window Place the Exit button on the form Change the Name property of the Exit button Change the property of the Exit button Change the location of the Exit button Change the Font properties of the Exit button Add the other buttons to the frmdemo form Change the Name properties Change the properties Resize the buttons Change the Font properties Add a Box to the frmdemo form Change the properties of the Box Attach code to the objects Attach code to the Exit button Code for the btnexit_click() event function Execute the Demo program Attach code to the Display button Attach code to the Clear button Execute the Demo program Executable file (Demo.EXE) Build a form from a table Questions Tench Computing Ltd Version L2 1
4 Chapter 3 Objectives CHOICE program Enter the code of the CHOICE program Execute the CHOICE program Enter more code Execute the CHOICE program How the CHOICE program works Comment CheckedChanged() event function Scroll bar Scroll program Create the form Code of the Scroll program Execute the Scroll program Minimum and Maximum properties of the scroll bar Value property of the scroll bar Keyboard focus Attach more code to the Scroll program Scroll bar properties Minimum and Maximum properties SmallChange and LargeChange properties Name conventions for controls Questions Chapter 4 Objectives Variables Arithmetic operators MULTIPLY program Arithmetic operator precedence Relational operators Decision statements if else construct switch statement Loops while loop do while loop for loop ADD program Execute the ADD program How the ADD program works TIMER program Execute the TIMER program How the TIMER program works Modify the TIMER program Execute the TIMER program Questions Tench Computing Ltd Version L2 1
5 Chapter 5 Objectives GroupBox control Enter the code of the GROUP program Debugging Compiler Executable file (EXE) Syntax errors Reserved words Logical errors Run-time errors Breakpoint and watches Check the value of a variable Add Watch Refresh() method Idle time GroupBox control Select multiple objects Lasso objects Print a code listing Print a form Question Chapter 6 Objectives Menus MENU program Create the menu Enter the code of the MENU program Add a separator bar to a menu Check marks Make a menu item invisible Questions Chapter 7 Objectives MessageBox class Show() method MESSAGE program Enter the code AcceptButon property CancelButton property Object Browser Questions Chapter 8 Objectives PictureBox control Stand-alone application Different types of picture files Bitmap files Icon files Move controls Tench Computing Ltd Version L2 1
6 PICTURE program Code the PICTURE program MOVEPIC program Code the MOVEPIC program Help facilities Questions Chapter 9 Objectives COUNT program Modify the COUNT program TabIndex property TabStop property Cursor property ComboBox control Colour constants COMBO program ListBox control Questions Chapter 10 Objectives Logical operators AND OR LOGICAL program Testing Purpose of testing Test data Evidence of compliance LOGICAL program test data Single dimension array Declare an array Access array elements Initialise an array using a loop Access and output values from an array try catch finally Questions Chapter 11 Objectives PasswordChar property QUOTE program String formats Console.WriteLine() method Locate the EXE file Questions Chapter 12 Objectives FontDialog control ShowDialog() method ColorDialog control ShowDialog() method Tench Computing Ltd Version L2 1
7 FullOpen property Font and Colour program File handling OpenFileDialog control ShowDialog() method FileName property Filter property FilterIndex property ShowReadOnly property DefaultExt property SaveFileDialog control OverwritePrompt property CheckFileExists property RichBox control SelectionAlignment property SelectionFont property SelectionColor property WordWrap property Dock property Locked property Sequential file LoadFile() method SaveFile() method EDITOR program DateTimePicker control Format property CustomFormat property Anchor property DATE program ToolStrip control TOOLSTRIP program Questions Sample assignment Sample assignment Sample questions Appendix A C# Programming Reference Guide Appendix B Tench Computing Ltd Version L2 1
8 [This page is intentionally blank] Tench Computing Ltd Version L2 1
9 Objectives Chapter 11 Use the PasswordChar property Use the Console.WriteLine() method Locate the EXE file PasswordChar property The PasswordChar property of a text box is used to specify which character is to be displayed when a password is entered. The character is displayed in the text box so that when the password is entered it is not visible on the screen. Instead for every character entered by the user the password character is displayed. QUOTE program The Quote program is to provide a quote on the screen. Before the quote can be completed the user has to enter a password. Create a new project, save the project as QUOTE and the form as FormQUOTE.cs. Build the form from the following table. Object Property Setting Form Name frmquote Quote program Size 496,304 StartPosition CenterScreen Label Name lblquote Quote Font 26, Bold Location 160,8 GroupBox Name grpproduct Product Size 136,152 Location 0,56 CheckBox Name chka4paper (Draw inside grpproduct) A4 Blue Paper Location 8,24 Checkbox Name chkpaperclips (Draw inside grpproduct) Paper Clips Location 8,56 137
10 Object Property Setting Checkbox Name chkstaples (Draw inside grpproduct) Staples Location 8,88 Checkbox Name chkcalendar (Draw inside grpproduct) Calendar Location 8,120 GroupBox Name grpprice Price Size 80,152 Location 136,56 Label Name lbla4paper (Draw inside grpprice) 2.99 Location 20,29 Label Name lblpaperclips (Draw inside grpprice) 1.99 Location 20,61 Label Name lblstaples (Draw inside grpprice) 4.99 Location 20,93 Label Name lblcalendar (Draw inside grpprice) 7.99 Location 20,125 GroupBox Name grpquantity Quantity Size 88,152 Location 216,56 Box Name txtqtya4paper (Draw inside grpquantity) Size 72,20 Location 8,24 Align Right TabIndex 0 Box Name txtqtypaperclips (Draw inside grpquantity) Size 72,20 Location 8,56 Align Right TabIndex 1 138
11 Object Property Setting Box Name txtqtystaples (Draw inside grpquantity) Size 72,20 Location 8,88 Align Right TabIndex 2 Box Name txtqtycalendar (Draw inside grpquantity) Size 72,20 Location 8,120 Align Right TabIndex 3 Label Name lblpassword Password Location 0,248 Box Name txtpassword PasswordChar * Size 88,20 Location 64,248 Button Name btncalculate Calculate Size 88,32 Location 392,48 Button Name btnexit Exit Size 88,32 Location 392,80 Label Name lblsubtotal Sub Total Location 320,192 Label Name lbltax Tax 17.5% Location 320,224 Label Name lbltotal Total Location 320,256 Font Bold 139
12 Object Property Setting Box Name txtcalcsubtotal Align Right Size 90,20 Location 392,184 Box Name txtcalctax Align Right Size 90,20 Location 392,216 Box Name txtcalctotal Align Right Font 10, Bold Size 90,22 Location 392,248 When the program is started the following screen appears. Most of the controls are not visible until the password Test is entered correctly. 140
13 Enter the following code for the frmquote_load() event function. private void frmquote_load() { //Move the focus to the txtpassword Box txtpassword.select(); } Enter the following code for the txtpassword_changed() event function. private void txtpassword_changed() { int i,j; //Check that the user entered the password "Test" correctly if (txtpassword. == "Test") { //Change the background colour of the password text box txtpassword.backcolor = Color.Purple; //Refresh the text box otherwise the colour does not appear txtpassword.refresh(); //Do a loop within a loop to count for a delay so that //the colour can be seen for (i = 1; i <= 20000; i++) { for (j = 1; j <= 10000; j++); } //Make the password label and text box not visible txtpassword. = false; lblpassword. = false; //Make the other controls visible grpproduct. = true; grpquantity. = true; grpprice. = true; btncalculate. = true; btnexit. = true; lblsubtotal. = true; txtcalcsubtotal. = true; lbltax. = true; txtcalctax. = true; lbltotal. = true; txtcalctotal. = true; } } 141
14 Enter the following code for the btnexit_click() event function. private void btnexit_click() { Application.Exit(); } Enter the following code for the btncalculate_click() event function. private void btncalculate_click() { //Declare the prices and Tax rate as constants so //that they can be changed easily. float or double is the //data type used for numbers that contain decimal places const double PRICEA4PAPER = 2.99; const double PRICEPAPERCLIPS = 1.99; const double PRICESTAPLES = 4.99; const double PRICECALENDAR = 7.99; const double TAXRATE = 17.5; double SubTotal = 0, Tax, Total; string StrSubTotal, StrTax, StrTotal; if (chka4paper.checked == true && txtqtya4paper.!= "") { SubTotal = SubTotal + Convert.ToDouble(txtQtyA4Paper.) * PRICEA4PAPER; } if (chkpaperclips.checked == true && txtqtypaperclips.!= "") { SubTotal = SubTotal + Convert.ToDouble(txtQtyPaperClips.) * PRICEPAPERCLIPS; } if (chkstaples.checked == true && txtqtystaples.!= "") { SubTotal = SubTotal + Convert.ToDouble(txtQtyStaples.) * PRICESTAPLES; } if (chkcalendar.checked == true && txtqtycalendar.!= "") { SubTotal = SubTotal + Convert.ToDouble(txtQtyCalendar.) * PRICECALENDAR; } //Format the SubTotal, Tax and Total values to Fixed Point "F" //This will allow the value to be displayed as 2 decimal places StrSubTotal = SubTotal.ToString("F"); txtcalcsubtotal. = " " + StrSubTotal; Tax = SubTotal * TAXRATE / 100; StrTax = Tax.ToString("F"); txtcalctax. = " " + StrTax; Total = SubTotal + Tax; StrTotal = Total.ToString("F"); txtcalctotal. = " " + StrTotal + " "; } 142
15 A constant is declared with the keyword const. The value of a constant cannot be changed while is program is running. Values that may need to be changed at a later date should be declared as constants and not written directly in the code. Constants are normally in uppercase to distinguish them from variables. A constant declared outside of any function can be seen by all functions. A constant declared inside a function can only be seen by that function. Save the project. Run the program. Enter the password Test and note that the text of the password is hidden and displayed as asterisks. Select a check box and enter a number in the Quantity for that product. When you have selected all the products required click the Calculate button. The following screen shows Paper Clips selected with a Quantity of 10 entered. String formats String data which contains numeric data can be formatted so that it appears in a numeric format e.g. with decimal places or with a currency symbol. The following table shows the basic types of formatting that can be used. Format Result "D" or "d" Decimal - integers "C" or "c" Currency currency symbol and 2 decimal places "F" or "f" Fixed point 2 decimal places "P" or "p" Percentage percentage sign inserted at end of string 143
16 The code for the formatting of the totals for the QUOTE program could also be done using the Currency format "C" which would mean that the " " sign would not need to be inserted separately. The following code shows how the Currency format can be used for the same calculation. //Format the SubTotal, Tax and Total values to Currency "C" //This will allow the value to be displayed //with a currency symbol and with 2 decimal places StrSubTotal = SubTotal.ToString("C"); txtcalcsubtotal. = StrSubTotal; Tax = SubTotal * TAXRATE / 100; StrTax = Tax.ToString("C"); txtcalctax. = StrTax; Total = SubTotal + Tax; StrTotal = Total.ToString("C"); txtcalctotal. = StrTotal + " "; Console.WriteLine() method The Console.WriteLine method can be inserted in code to output the value in a variable to the Output window. This can help when debugging because you can track the value of a variable as the program is running. The Output window appears at the bottom of the screen when the program is running in the development environment. The following line of code will output SubTotal = and then the value in the SubTotal variable at this point in the code as shown in the following Output window. Console.WriteLine("SubTotal = {0}", SubTotal.ToString("F")); The output is formatted as Fixed point ("F") which displays with 2 decimal places. 144
17 Locate the EXE file The location of the EXE file depends on whether you have used the default directory to store your projects. The default directory for Visual C# Express Edition 2005 is Visual Studio The path from this top level directory is then \Projects\projectname\bin\Debug. The projectname.exe should be stored in this Debug directory. Note that there is also a Release directory at this level. The Debug directory contains the EXE file which has debug information included. This makes the EXE file a larger size. Normally once a program is completed and tested it is compiled without any debugging information and placed in the Release directory. You need a professional version of Visual C# to be able to create a Release version of the EXE which does not include the Debug information. The program can be run outside the development environment by locating the EXE file and double clicking on it. 145
18 Questions Using the QUOTE project: Create test data and calculate the expected results for the program. Test the program and compare the expected results to the actual results. Produce a screen print to show the result for a quote. Add a new button named btnclear and set the property to Clear. When the Clear button is clicked all the checkboxes must be deselected and all the text boxes (except the text box for the password) must be set to empty. 2. Create a new project, save the project as STUDENT and the form as FormSTUDENT.cs. Build the form from the following table. Object Property Setting Form Name frmstudent Student program BackColor light yellow Size 384,280 StartPosition CenterScreen Label Name lbltitle MARKS Font Bold, 14 Location 144,9 Label Name lblname Name Location 16,40 Label Name lblmaths Maths Location 16,80 Label Name lblit IT Location 16,120 Label Name lblfrench French Location 16,160 Label Name lblresult Result Location 16,
19 Object Property Setting Label Name lblpassword Password True Location 16,230 Box Name txtname TabIndex 1 Size 184,20 Location 112,40 Box Name txtmaths TabIndex 2 Align Right Size 72,20 Location 112,80 Box Name txtit TabIndex 3 Align Right Size 72,20 Location 112,120 Box Name txtfrench TabIndex 4 Align Right Size 72,20 Location 112,160 Box Name txtresult TabIndex 5 Align Right Size 72,20 Location 112,200 Box Name txtpassword PasswordChar * TabIndex 0 Size 80,20 Location 112,230 True Button Name btncalculate Calculate Size 80,40 Location 272,
20 Object Property Setting Button Name btnnext Next Size 80,40 Location 272,149 Add a MenuStrip control to the form. Create the following menu: File Exit Name mnufile mnuexit When the program starts running the form should appear as shown below. When the correct password is entered the label and text box for the password must be removed and the other controls must be made visible. The form should then appear as follows. 148
21 Write code for the mnuexit_click() event function to end the program. Write code for the btncalculate_click() event function to work out the average of the marks for Maths, IT and French. A result should be calculated as follows: If the average is less than 40 then the result is Fail If the average is between 40 and 64 (inclusive) then the result is Pass If the average is between 65 and 84 (inclusive) then the result is Merit If the average is 85 or more then the result is Distinction Write code for the btnnext_click() event function to clear the text boxes. Add try catch as appropriate. Create test data and calculate the expected results for the program. Test the program and compare the expected results to the actual result. 149
22 [This page is intentionally blank] 150
Creating a procedural computer program using COBOL Level 2 Notes for City & Guilds 7540 Unit 005
Creating a procedural computer program using COBOL Level 2 Notes for City & Guilds 7540 Unit 005 Compatible with Micro Focus Net Express 5.0 COBOL compiler Version 1 Tench Computing Ltd Pines Glendale
More informationPresentation software Level 2 Notes for City & Guilds 7574 ITQ Unit 225 Written for PowerPoint 2007 for Windows XP
Presentation software Level 2 Notes for City & Guilds 7574 ITQ Unit 225 Written for PowerPoint 2007 for Windows XP Tench Computing Ltd Version 1 Tench Computing Ltd Pines Glendale Road Burgess Hill West
More informationCreating an event driven computer program using Java Level 2 Notes for City & Guilds 7540 Unit 007 Written for Java Development Kit (SDK) 1.
Creating an event driven computer program using Java Level 2 Notes for City & Guilds 7540 Unit 007 Written for Java Development Kit (SDK) 1.6 Tench Computing Ltd Version 1 Tench Computing Ltd Pines Glendale
More informationWeb site software Level 2 Notes for City & Guilds 7574 ITQ Unit 228 Written for FrontPage 2003 for Windows XP
Web site software Level 2 Notes for City & Guilds Unit 228 Written for FrontPage 2003 for Windows XP Tench Computing Ltd Version 1 Tench Computing Ltd Pines Glendale Road Burgess Hill West Sussex RH15
More informationSpreadsheet software Level 2 Notes for City & Guilds 7574 ITQ Unit 227 Written for Excel 2007 for Windows XP
Spreadsheet software Level 2 Notes for City & Guilds 7574 ITQ Unit 227 Written for Excel 2007 for Windows XP Tench Computing Ltd Version 1 Tench Computing Ltd Pines Glendale Road Burgess Hill West Sussex
More informationFast Food Store Group Boxes and Other User Controls
VISUAL BASIC Fast Food Store Group Boxes and Other User Controls Copyright 2014 Dan McElroy Sample Program Execution The customer receipt is updated each time another selection is made and the Enter button
More informationCST242 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 informationLevel 2 Creating an event driven computer program using C# ( )
Level 2 Creating an event driven computer program using C# (7540-008) Assignment guide for Candidates Assignment A www.cityandguilds.com October 2017 Version 1.0 About City & Guilds City & Guilds is the
More informationUsing 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 informationLevel 2 Creating an event driven computer program using Visual Basic ( )
Level 2 Creating an event driven computer program using Visual Basic (7540-006) Systems and Principles (QCF) Assignment guide for Candidates Assignment C www.cityandguilds.com January 2010 Version 1.0
More informationLevel 2 Creating an event driven computer program using C# ( )
Level 2 Creating an event driven computer program using C# (7540-008) Assignment guide for Candidates Assignment B www.cityandguilds.com October 2017 Version 1.0 About City & Guilds City & Guilds is the
More informationIT user fundamentals. Level 1 Notes for City & Guilds 7574 ITQ Unit 102
IT user fundamentals Level 1 Notes for City & Guilds 7574 ITQ Unit 102 Written for Office 2007 for Windows XP Tench Computing Ltd Version 1 Tench Computing Ltd Pines Glendale Road Burgess Hill West Sussex
More informationChapter 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 informationGUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4
GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,
More informationLevel 2 Create Software Components Using C# (7266/ )
Level 2 Create Software Components Using C# (7266/7267-206) e-quals Assignment guide for Candidates Assignment B www.cityandguilds.com/e-quals07 November 2010 Version 3.0 About City & Guilds City & Guilds
More informationThis page intentionally left blank
This page intentionally left blank Starting Out With Visual Basic: International Edition Table of Contents Cover Contents Preface Chapter 1 Introduction to Programming and Visual Basic 1.1 Computer Systems:
More informationFull 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 informationIndex. B base classes creating, , 389 inheriting, inheriting in new classes, 390
Index Symbols & (string concatenation (combination) operator), 70, 135 function of, 174 * (multiplication operator), 135 + (addition operator), 135 / (division operator), 135 = (assignment (equal to) operator),
More informationYou 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 informationWyo VB Lecture Notes - Objects, Methods, & Properties
Wyo VB Lecture Notes - Objects, Methods, & Properties Objective #1: Use forms appropriately. A form is a basic building block of a Visual Basic project. Eventually, you'll be creating projects that consist
More informationJames Foxall. Sams Teach Yourself. Visual Basic 2012 *24. Hours. sams. 800 East 96th Street, Indianapolis, Indiana, USA
James Foxall Sams Teach Yourself Visual Basic 2012 *24 Hours sams 800 East 96th Street, Indianapolis, Indiana, 46240 USA Table of Contents Introduction 1 PART I: The Visual Basic 2012 Environment HOUR
More informationCIS 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 informationPhiladelphia 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 informationIT3101 -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 informationB.V Patel Institute of Business Management, Computer & Information Technology
BCA (Semester 4 th ) 030010401: GUI Programming Teaching Schedule Objective: To provide fundamentals of.net framework, C# language and to introduce development of rich Windows form applications with event
More informationLevel 2/3 Award/ Certificate/Diplomas in ICT Systems and Principles ( /13)
Level 2/3 Award/ Certificate/Diplomas in ICT Systems and Principles (7540-12/13) Level 1 & 2 Units handbook UNITS HANDBOOK June 2012 Version 1.3 (March 2015) Qualification at a glance Subject area City
More informationSystems and Principles Unit Syllabus
Systems and Principles Unit Syllabus Level 2 Creating an event driven computer program using Java 7540-007 www.cityandguilds.com October 2010 Version 2.0 About City & Guilds City & Guilds is the UK s leading
More informationMusic and Videos. with Exception Handling
VISUAL BASIC LAB with Exception Handling Copyright 2015 Dan McElroy - Lab Assignment Develop a Visual Basic application program that is used to input the number of music songs and the number of videos
More informationC# 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 informationLevel 2 Creating an event driven computer program using VisualBasic.Net ( )
Level 2 Creating an event driven computer program using VisualBasic.Net (7540-009) Assignment guide for Candidates Assignment B www.cityandguilds.com October 2017 Version 1.0 About City & Guilds City &
More informationVisual C# Program: Simple Game 3
C h a p t e r 6C Visual C# Program: Simple Game 3 In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor Beginning a
More informationC# 2008 and.net Programming for Electronic Engineers - Elektor - ISBN
Contents Contents 5 About the Author 12 Introduction 13 Conventions used in this book 14 1 The Visual Studio C# Environment 15 1.1 Introduction 15 1.2 Obtaining the C# software 15 1.3 The Visual Studio
More informationCENTAUR S REAL-TIME GRAPHIC INTERFACE V4.0 OPERATOR S MANUAL
CENTAUR S REAL-TIME GRAPHIC INTERFACE V4.0 OPERATOR S MANUAL TABLE OF CONTENTS Installation... 6 Introduction to Centaur s real-time Graphic Interface... 6 Computer Requirements... 7 Operating System
More informationVisual Basic.NET. 1. Which language is not a true object-oriented programming language?
Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.
More informationTokens, Expressions and Control Structures
3 Tokens, Expressions and Control Structures Tokens Keywords Identifiers Data types User-defined types Derived types Symbolic constants Declaration of variables Initialization Reference variables Type
More informationControls. 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 informationStarting Out With Visual Basic 2012, 6th Edition Page 1
Starting Out With Visual Basic 2012, 6th Edition Page 1 Instant download and all chapters Solutions Manual Starting Out With Visual Basic 2012 6th Edition Gaddis, Irvine https://testbankdata.com/download/solutions-manual-starting-visual-basic-
More informationLecture 1 Introduction Phil Smith
2014-2015 Lecture 1 Introduction Phil Smith Learning Outcomes LO1 Understand the principles of object oriented programming LO2 Be able to design object oriented programming solutions LO3 Be able to implement
More informationTutorial 5 Completing the Inventory Application Introducing Programming
1 Tutorial 5 Completing the Inventory Application Introducing Programming Outline 5.1 Test-Driving the Inventory Application 5.2 Introduction to C# Code 5.3 Inserting an Event Handler 5.4 Performing a
More informationNiceForm 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 informationC# Continued. Learning Objectives:
Learning Objectives: C# Continued Open File Dialog and Save File Dialog File Input/Output Importing Pictures from Files and saving Bitmaps Reading and Writing Text Files Try and Catch Working with Strings
More informationDeveloping Student Programming and Problem-Solving Skills With Visual Basic
t e c h n o l o g y Del Siegle, Ph.D. Developing Student Programming and Problem-Solving Skills With Visual Basic TThree decades have passed since computers were first introduced into American classrooms.
More informationIntroduction. Key features and lab exercises to familiarize new users to the Visual environment
Introduction Key features and lab exercises to familiarize new users to the Visual environment January 1999 CONTENTS KEY FEATURES... 3 Statement Completion Options 3 Auto List Members 3 Auto Type Info
More informationChapter 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 informationVisual C# Program: Resistor Sizing Calculator
C h a p t e r 4 Visual C# Program: Resistor Sizing Calculator In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor
More informationAfter completing this appendix, you will be able to:
1418835463_AppendixA.qxd 5/22/06 02:31 PM Page 879 A P P E N D I X A A DEBUGGING After completing this appendix, you will be able to: Describe the types of programming errors Trace statement execution
More information1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d.
Gaddis: Starting Out with Python, 2e - Test Bank Chapter Two MULTIPLE CHOICE 1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical
More informationLevel 2 Creating an event driven computer program using Visual Basic.NET ( )
Level 2 Creating an event driven computer program using Visual Basic.NET (7540-009) Assignment guide for Candidates Assignment D www.cityandguilds.com October 2017 Version 1.0 About City & Guilds City
More informationEXCEL 2003 DISCLAIMER:
EXCEL 2003 DISCLAIMER: This reference guide is meant for experienced Microsoft Excel users. It provides a list of quick tips and shortcuts for familiar features. This guide does NOT replace training or
More informationSAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE
SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE Course Title: Introduction to Visual Basic Code No.: Semester: Three Program: Computer Programming Author: Willem de Bruyne
More informationLevel 2 Create software components using Visual Basic.NET ( )
Level 2 Create software components using Visual Basic.NET (7266-207) e-quals Assignment guide for Candidates Assignment C www.cityandguilds.com/e-quals07 March 2007 Version 1.0 About City & Guilds City
More informationProgramming Logic Beginning
Programming Logic Beginning 152-101 Designing Programs and Applications Quick Links & Text References Program Design Pages 23 27 Algorithms Pages 25 26 Levels of Design Pages IOPs Pages User Interface
More informationSkill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)
Skill Area 336 Explain Essential Programming Concept Programming Language 2 (PL2) 336.2-Apply Basic Program Development Techniques 336.2.1 Identify language components for program development 336.2.2 Use
More information1 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 informationQuery Studio Training Guide Cognos 8 February 2010 DRAFT. Arkansas Public School Computer Network 101 East Capitol, Suite 101 Little Rock, AR 72201
Query Studio Training Guide Cognos 8 February 2010 DRAFT Arkansas Public School Computer Network 101 East Capitol, Suite 101 Little Rock, AR 72201 2 Table of Contents Accessing Cognos Query Studio... 5
More information4D Write. User Reference Mac OS and Windows Versions. 4D Write D SA/4D, Inc. All Rights reserved.
4D Write User Reference Mac OS and Windows Versions 4D Write 1999-2002 4D SA/4D, Inc. All Rights reserved. 4D Write User Reference Version 6.8 for Mac OS and Windows Copyright 1999 2002 4D SA/4D, Inc.
More informationLas Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning
More informationSage Getting Started Guide. September 2017
Sage 100 2018 Getting Started Guide September 2017 2017 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks
More informationIn this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics.
Additional Controls, Scope, Random Numbers, and Graphics CS109 In this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics. Combo
More informationVARIABLES AND CONSTANTS
UNIT 3 Structure VARIABLES AND CONSTANTS Variables and Constants 3.0 Introduction 3.1 Objectives 3.2 Character Set 3.3 Identifiers and Keywords 3.3.1 Rules for Forming Identifiers 3.3.2 Keywords 3.4 Data
More informationContents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6
Contents ***Introduction*** Introduction to Programming... 1 Introduction... 2 What is a Program?... 2 Role Played by a Program to Perform a Task... 2 What is a Programming Language?... 3 Types of Programming
More information1 Information system An information system is the combination of technology(computers) and people that enable an organization to collect data, store them, and transform them into information Data Data
More informationCode::Blocks Student Manual
Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of
More informationPROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA
PROGRAMMING LANGUAGE 2 (SPM3112) INTRODUCTION TO VISUAL BASIC NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA Topics Visual Basic Components Basic Operation Screen Size
More informationChapters and Appendix F are PDF documents posted online at the book s Companion Website (located at
Contents Chapters 16 27 and Appendix F are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface Before You Begin xix xxix 1 Introduction to
More informationSTAR OFFICE CALC. Lesson 6
Lesson 6 STAR OFFICE CALC 1. command is used to insert special characters? a. Insert Characters b. Special characters Insert c. Insert Special characters d. None of these 2. icon is used to present the
More informationCreating Interactive PDF Forms
Creating Interactive PDF Forms Using Adobe Acrobat X Pro for the Mac University Information Technology Services Training, Outreach, Learning Technologies and Video Production Copyright 2012 KSU Department
More informationCERTIFICATE IN WEB PROGRAMMING
COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING
More informationEnhancements Guide. Applied Business Services, Inc. 900 Wind River Lane Suite 102 Gaithersburg, MD General Phone: (800)
Enhancements Guide Applied Business Services, Inc. 900 Wind River Lane Suite 102 Gaithersburg, MD 20878 General Phone: (800) 451-7447 Support Telephone: (800) 451-7447 Ext. 2 Support Email: support@clientaccess.com
More informationProgramming in C# Project 1:
Programming in C# Project 1: Set the text in the Form s title bar. Change the Form s background color. Place a Label control on the Form. Display text in a Label control. Place a PictureBox control on
More informationGetting 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 informationCHRIS Introduction Guide
1 Introduction... 3 1.1 The Login screen... 3 1.2 The itrent Home page... 5 1.2.1 Out of Office... 8 1.2.2 Default User Preferences... 9 1.2.3 Bookmarks... 10 1.3 The itrent Screen... 11 The Control Bar...
More informationSubject to Change Drawing Application 1 Introducing Computers, the Internet and C#
CO N T E N T S Subject to Change 08-01-2003 Preface Before You Begin Brief Table of Contents i iv vii 1 Drawing Application 1 Introducing Computers, the Internet and C# 1.1 What Is a Computer? 1 1.2 Computer
More informationProgramming Logic - Beginning
Instructor s Programming Logic - Beginning Designing Programs and Applications Programming Logic - Beginning 152-101 Designing Programs and Applications Quick Links & Text References Program Design Pages
More informationDATA WAREHOUSE BASICS
DATA WAREHOUSE BASICS A Software Overview using the Retail Golf Model with version 9 NOTE: This course material was developed using Hummingbird version 9 with Windows XP. There will be navigational differences
More informationChapter 2 The Design Window
Chapter 2 Objectives Chapter 2 The Design Window Learn about Crystal sections Move objects Use Toolbars, Icons, and Menus Format fields Add Special Fields Change a Group Use the Crystal Field Explorer
More informationDive 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 informationTutorial 3 - Welcome Application
1 Tutorial 3 - Welcome Application Introduction to Visual Programming Outline 3.1 Test-Driving the Welcome Application 3.2 Constructing the Welcome Application 3.3 Objects used in the Welcome Application
More informationLevel 2 Designing and creating documents using desktop publishing software (7266/ ) e-quals Assignment guide for Candidates Assignment C
Level 2 Designing and creating documents using desktop publishing software (7266/7267-028) e-quals Assignment guide for Candidates Assignment C www.cityandguilds.com/e-quals07 February 2009 Version 1.0
More informationLevel 3 Designing and creating relational databases (7266/ ) e-quals
Level 3 Designing and creating relational databases (7266/7267-047) e-quals Assignment guide for Candidates Assignment A www.cityandguilds.com/e-quals07 May 2011 Version 3.0 About City & Guilds City &
More informationMicrosoft Visual C# 2005: Developing Applications Table of Contents
Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Sample Database...INTRO-3 Security...INTRO-4 Installation...INTRO-4
More informationLESSON A. The Splash Screen Application
The Splash Screen Application LESSON A LESSON A After studying Lesson A, you should be able to: Start and customize Visual Studio 2010 or Visual Basic 2010 Express Create a Visual Basic 2010 Windows application
More informationeschoolplus+ Cognos Query Studio Training Guide Version 2.4
+ Training Guide Version 2.4 May 2015 Arkansas Public School Computer Network This page was intentionally left blank Page 2 of 68 Table of Contents... 5 Accessing... 5 Working in Query Studio... 8 Query
More informationYou will learn how to plan an OO application in this lesson. Steps three through six of the process are covered in Lessons B and C.
Planning an Object-Oriented Application LESSON A LESSON A After studying Lesson A, you should be able to: Plan an object-oriented Windows application in Visual Basic 2010 Complete a TOE (Task, Object,
More informationQLARITY FOUNDRY USER GUIDE REVISION 2.61
QLARITY FOUNDRY USER GUIDE REVISION 2.61 QSI CORPORATION 2212 South West Temple #50 Salt Lake City, Utah 84115-2648 USA M01-005-00 Rev 3 Phone 801-466-8770 Fax 801-466-8792 Email info@qsicorp.com Web www.qsicorp.com
More informationIT 374 C# and Applications/ IT695 C# Data Structures
IT 374 C# and Applications/ IT695 C# Data Structures Module 2.1: Introduction to C# App Programming Xianrong (Shawn) Zheng Spring 2017 1 Outline Introduction Creating a Simple App String Interpolation
More informationOPTOTERMINAL QLARITY FOUNDRY USER'S MANUAL REVISION 2.5
OPTOTERMINAL QLARITY FOUNDRY USER'S MANUAL REVISION 2.5 Opto 22 43044 Business Park Drive Temecula, CA 92590-3614 USA Phone 800.321.OPTO (6786) or 951.695.3000 Fax 800.832OPTO (6786) or 951.695.2712 Email:
More informationEND-TERM EXAMINATION
(Please Write your Exam Roll No. immediately) END-TERM EXAMINATION DECEMBER 2006 Exam. Roll No... Exam Series code: 100274DEC06200274 Paper Code : MCA-207 Subject: Front End Design Tools Time: 3 Hours
More informationIngegneria del Software T. Interfaccia utente
Interfaccia utente Creating Windows Applications Typical windows-application design & development 1+ classes derived from System.Windows.Forms.Form Design UI with VisualStudio.NET Possible to do anything
More informationOur first program is a simple calculator, which will carry out the arithmetic operations of adding, subtracting, multiplying and dividing numbers.
Chapter 2: Calculations 29 2 Calculations Most computer programs need to carry out calculations, for example: with money, quantities of materials, or dates and times. In this chapter, we will examine how
More informationChapters are PDF documents posted online at the book s Companion Website (located at
vbhtp6printonlytoc.fm Page ix Wednesday, February 27, 2013 11:59 AM Chapters 16 31 are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface
More informationEW The Source Browser might fail to start data collection properly in large projects until the Source Browser window is opened manually.
EW 25462 The Source Browser might fail to start data collection properly in large projects until the Source Browser window is opened manually. EW 25460 Some objects of a struct/union type defined with
More informationIntroduction to C# Applications
1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making
More informationVisual C# Program: Temperature Conversion Program
C h a p t e r 4B Addendum Visual C# Program: Temperature Conversion Program In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Writing a
More informationIntroduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming
Introduction to the Visual Studio.NET Integrated Development Environment IDE CSC 211 Intermediate Programming Visual Studio.NET Integrated Development Environment (IDE) The Start Page(Fig. 1) Helpful links
More informationRSL Reference Manual
RSL Reference Manual Part No.: Date: April 6, 1990 Original Authors: Klaus Havelund, Anne Haxthausen Copyright c 1990 Computer Resources International A/S This document is issued on a restricted basis
More informationIntroductionto 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 informationCode::Blocks Student Manual
Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of
More informationProvideX. NOMADS Enhancements
ProvideX VERSION 8.0 NOMADS Enhancements Introduction 3 Panel Designer Enhancements 5 Properties Window 7 New Format Definition for Grids/List Boxes 12 Bulk Edit Utility 14 Drag and Drop Utility 16 Dependency
More informationLevel 2 Creating an event driven computer program using Java ( )
Level 2 Creating an event driven computer program using Java (7540-007) Assignment guide for Candidates Assignment C www.cityandguilds.com October 2017 Version 1.0 About City & Guilds City & Guilds is
More information