Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1

Size: px
Start display at page:

Download "Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1"

Transcription

1 Events Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime An event is something that happens. Your birthday is an event. An event in programming terminology is when something special happens. These events are so special that they are built in to the programming language. VS.NET has numerous Events that you can write code for. Event Handler Arguments Event handlers take two arguments: 1. An Object (usually sender) : Instead of sender being an integer or string variable, the type of variable set up for sender is System.Object. This stores a reference to a control (which button was clicked, for example). 2. An event arguments object (e) : An instance of type EventArgs. Class EventArgs is the base class for objects that contain event information. Events are handled by methods that live behind visual interface known as "code-behind" our job is to program these methods Form properties typically control visual appearance: Form1 form; form = new Form1(); form.windowstate = FormWindowState.Maximized; form.show(); AutoScroll BackgroundImage ControlBox FormBorderStyle (sizable?) Icon Location Size StartPosition Text (i.e. window's caption) WindowState (minimized, maximized, normal) EEE-425 Programming Languages (2016) 1

2 Actions you can perform on a form: form.hide();... form.show(); Activate: give this form the focus Close: close & release associated resources Hide: hide, but retain resources to show form later Refresh: redraw Show: make form visible on the screen, & activate ShowDialog: show modally Events you can respond to: bring up properties window double-click on event name Load: occurs just before form is shown for first time Closing: occurs as form is being closed (ability to cancel) Closed: occurs as form is definitely being closed Resize: occurs after user resizes form Click: occurs when user clicks on form's background KeyPress: occurs when form has focus & user presses key Ask user before closing form: private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) DialogResult r; r = MessageBox.Show("Do you really want to close?", "MyApp", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1); if (r == DialogResult.No) e.cancel = true; Buttons have the ability to be clicked on. When you click a button, the event that is fired is the Click Event. If you were to add a new button to a form, and then double clicked it, you would see the following code: private void button1_click(object sender, EventArgs e)... In between the round brackets, we have this: object sender, EventArgs e For example suppose we want the Button button1 to respond when clicked by showing a message box with the statement Button was clicked. n between the round brackets, we have this: object sender, EventArgs e The object keyword refers to the object which activated the event, a button in this case. This is being placed in a variable called sender. MessageBox.Show( sender.tostring() ); An event is a message sent by an object announcing that something has happened. When events occurs, information is passed to Event handlers. EEE-425 Programming Languages (2016) 2

3 EventArgs is a class. It's short for event arguments, and tells you which events was raised. The letter "e" sets up a variable to use this class. you write your line of code to this: MessageBox.Show( e.tostring() ); will then display the following: This section explains the handling of mouse events, such as clicks, presses and moves, which are generated when the mouse interacts with a control. Mouse event information is passed through class MouseEventArgs. Each mouse-event-handling method requires an Object (sender) and a MouseEventArgs object (e) as arguments. //e can use an if statement to check which mouse button was clicked. using System.Windows.Forms; Class MouseEventArgs contains information related to the mouse event, such as the x- and y-coordinates of the mouse pointer, the mouse button pressed Right, Left or Middle), the number of times the mouse was clicked Note that the x- and y-coordinates of the MouseEventArgs object are relative to the control that generated the event. Point (0,0) represents the upper-left corner of the control. The X property returns how far across, from left to right, the mouse is; the Y property returns how far down, from top to bottom, the mouse is. namespace Event private void Form1_MouseDown(object sender, MouseEventArgs e) if (e.button == MouseButtons.Left) MessageBox.Show("left button clicked"); else if (e.button == MouseButtons.Right) MessageBox.Show("Right Button clicked" ); 18 EEE-425 Programming Languages (2016) 3

4 private void panel1_mousedown(object sender, MouseEventArgs e) switch (e.button) case MouseButtons.Left: label1.text = "Left"; case MouseButtons.Middle: label1.text = "Middle"; case MouseButtons.Right: label1.text = "Right"; label2.text = Convert.ToString(e.X) + "," + Convert.ToString(e.Y); case MouseButtons.Middle: label1.text = "Middle"; OR The only thing you need is to access a property of the e variable. if (e.button == MouseButtons.Left) MessageBox.Show("left button clicked"); else if (e.button == MouseButtons.Right) MessageBox.Show("Right Button clicked" ); Key Events Generated when keys are pressed and released, there are two types: 1. KeyPress Can return a Char for any ASCII character pressed 2. KeyUp and KeyDown Test for special modifier keys Use KeyEventArgs Keyboard-Event Handling if (e.keycode == Keys.Enter) MessageBox.Show("Enter Key Pressed "); 24 EEE-425 Programming Languages (2016) 4

5 KeyPress Event using System; using System.Windows.Forms; namespace WindowsFormsApplication1 private void textbox1_keypress(object sender, KeyPressEventArgs e) if (e.keychar == (char)keys.enter) if (e.keychar == 13) using System; using System.Windows.Forms; namespace WindowsFormsApplication1 private void textbox1_keydown(object sender, KeyEventArgs e) if (e.keycode == Keys.Enter) 26 using System; using System.Windows.Forms; namespace WindowsFormsApplication1 private void textbox1_keyup(object sender, KeyEventArgs e) if (e.keycode == Keys.Enter) To see what properties the e variable has available to it, add the following to your TextBox1_KeyDown code: If (e.keycode == Keys.F1) TextBox1.Clear(); MessageBox.Show("Help!!!") 27 But these events does not fire when arrow keys are pressed. One way to get around it is to set KeyPreview as true for your Form. protected override bool ProcessCmdKey(ref Message msg, Keys keydata) switch (keydata) case Keys.Down: label1.text = "Down"; case Keys.Up: label1.text = "Up"; case Keys.Right: label1.text = "Right"; case Keys.Left: label1.text = "Left"; return base.processcmdkey(ref msg, keydata); 29 Use the Class Name and Method Name dropdown menus to create and register event handlers. The information the programmer needs to register an event is the EventArgs class (to define the event handler) and the EventHandler delegate (to register the event handler). EEE-425 Programming Languages (2016) 5

6 Mouse events (such as clicks and presses) use class MouseEventArgs (MouseEventHandler delegate) and EventArgs (EventHandler delegate). Class MouseEventArgs contains information about the x- and y-coordinates, the button used and the number of clicks. Key events are generated when keyboard s keys are pressed and released. Event KeyPress can return a Char for any ASCII character pressed. One cannot determine from a KeyPress event whether special modifier keys (such as Shift, Alt and Control) were pressed. Events KeyUp and KeyDown test for special modifier keys (using KeyEventArgs). The delegates are KeyPressEventHandler (KeyPressEventArgs) and KeyEventHandler (KeyEventArgs). Class KeyEventArgs has properties KeyCode, KeyData and KeyValue. The KeyCode property returns the key pressed, but does not give any information about modifier keys. The KeyData property includes data about modifier keys. The KeyValue property returns the key code for the key pressed as an Integer. EEE-425 Programming Languages (2016) 6

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Event-driven, code-behind programming Visual Studio.NET WinForms Controls Part 1 Event-driven, code-behind programming

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

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

Chapter 6 Dialogs. Creating a Dialog Style Form

Chapter 6 Dialogs. Creating a Dialog Style Form Chapter 6 Dialogs We all know the importance of dialogs in Windows applications. Dialogs using the.net FCL are very easy to implement if you already know how to use basic controls on forms. A dialog is

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

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them.

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them. We are working on Visual Studio 2010 but this project can be remade in any other version of visual studio. Start a new project in Visual Studio, make this a C# Windows Form Application and name it zombieshooter.

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

CSC 211 Intermediate Programming

CSC 211 Intermediate Programming Introduction CSC 211 Intermediate Programming Graphical User Interface Concepts: Part 1 Graphical user interface Allow interaction with program visually Give program distinct look and feel Built from window

More information

, , ,

, , , Windows Forms .NET Framework Lecture 5-2 Microsoft technology introduced in 2002 1.1 2003, 2.0 2005, 3.0 2006, 3.5 2007 Integration with Windows systems:.net Framework 1.0, 1.1, 2.0: available for: 98,

More information

Start Visual Studio, create a new project called Helicopter Game and press OK

Start Visual Studio, create a new project called Helicopter Game and press OK C# Tutorial Create a helicopter flying and shooting game in visual studio In this tutorial we will create a fun little helicopter game in visual studio. You will be flying the helicopter which can shoot

More information

Form Properties Window

Form Properties Window C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click

More information

Click on the empty form and apply the following options to the properties Windows.

Click on the empty form and apply the following options to the properties Windows. Start New Project In Visual Studio Choose C# Windows Form Application Name it SpaceInvaders and Click OK. Click on the empty form and apply the following options to the properties Windows. This is the

More information

Responding to the Mouse

Responding to the Mouse Responding to the Mouse The mouse has two buttons: left and right. Each button can be depressed and can be released. Here, for reference are the definitions of three common terms for actions performed

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

Chapter 14. Additional Topics in C# 2010 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 14. Additional Topics in C# 2010 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 14 Additional Topics in C# McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Validate user input in the Validating event handler and display messages

More information

HOUR 4 Understanding Events

HOUR 4 Understanding Events HOUR 4 Understanding Events It s fairly easy to produce an attractive interface for an application using Visual Basic.NET s integrated design tools. You can create beautiful forms that have buttons to

More information

More Language Features and Windows Forms

More Language Features and Windows Forms More Language Features and Windows Forms C# Programming January 12 Part I Some Language Features Inheritance To extend a class A: class B : A {... } B inherits all instance variables and methods of A Which

More information

Visual C# Program: Simple Game 3

Visual 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 information

More Language Features and Windows Forms. Part I. Some Language Features. Inheritance. Inheritance. Inheritance. Inheritance.

More Language Features and Windows Forms. Part I. Some Language Features. Inheritance. Inheritance. Inheritance. Inheritance. More Language Features and Windows Forms C# Programming Part I Some Language Features January 12 To extend a class A: class B : A { B inherits all instance variables and methods of A Which ones it can

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

Computer Basics. Logging onto Windows

Computer Basics. Logging onto Windows Computer Basics DRN uses Windows PCs for all of its day-to-day operations. You will need to master the details of this section in order to perform your daily tasks. Fortunately, these basics are very simple

More information

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Before you start - download the game assets from above or on MOOICT.COM to

More information

Chapter 6. Multiform Projects The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 6. Multiform Projects The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 6 Multiform Projects McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Include multiple forms in an application Use a template to create an About box

More information

//filename.cs using System; using System.Windows.Forms; [STAThread] public static void Main() { Application.Run(new Form1()); } }

//filename.cs using System; using System.Windows.Forms; [STAThread] public static void Main() { Application.Run(new Form1()); } } Lecture #10 Introduction Hand-Coding Windows Forms Applications The.NET Framework provide tools and components, such as dialog boxes, menus, buttons, and many other controls, that make up a standard Windows

More information

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6.

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6. 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

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

12/14/2016. Errors. Debugging and Error Handling. Run-Time Errors. Debugging in C# Debugging in C# (continued)

12/14/2016. Errors. Debugging and Error Handling. Run-Time Errors. Debugging in C# Debugging in C# (continued) Debugging and Error Handling Debugging methods available in the ID Error-handling techniques available in C# Errors Visual Studio IDE reports errors as soon as it is able to detect a problem Error message

More information

Chapter 8 Advanced GUI Features

Chapter 8 Advanced GUI Features 159 Chapter 8 Advanced GUI Features There are many other features we can easily add to a Windows C# application. We must be able to have menus and dialogs along with many other controls. One workhorse

More information

You can call the project anything you like I will be calling this one project slide show.

You can call the project anything you like I will be calling this one project slide show. C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise

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

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

These are the four symbols which we will use in the picture box to represent the sum instructions.

These are the four symbols which we will use in the picture box to represent the sum instructions. Create a Maths quiz game in Visual studio with C# Guess the symbol This you will need resource images for the symbols 4 labels 1 picture box called symbol num1 will show the first number num2 will show

More information

Respond to Data Entry Events

Respond to Data Entry Events Respond to Data Entry Events Callahan Chapter 4 Understanding Form and Control Events Developer s Goal make data entry easy, fast, complete, accurate Many form- and control-level events occur as user works

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

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

This Photoshop Tutorial 2011 Steve Patterson, Photoshop Essentials.com. Not To Be Reproduced Or Redistributed Without Permission.

This Photoshop Tutorial 2011 Steve Patterson, Photoshop Essentials.com. Not To Be Reproduced Or Redistributed Without Permission. Rotate, Flip & Scale Individual Letters In Text Photoshop makes it easy to rotate, flip and scale entire words or lines of text in a document, but what if we want to transform only a single letter in a

More information

We are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.

We are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project. C# Tutorial - Create a Batman Gravity Run Game Start a new project in visual studio and call it gravityrun It should be a windows form application with C# Click OK Change the size of the to 800,300 and

More information

Chapter 12 - Graphical User Interface Concepts: Part 1

Chapter 12 - Graphical User Interface Concepts: Part 1 Chapter 12 - Graphical User Interface Concepts: Part 1 1 12.1 Introduction 12.2 Windows Forms 12.3 Event-Handling Model 12.3.1 Basic Event Handling 12.4 Control Properties and Layout 12.5 Labels, TextBoxes

More information

APPLICATION SHARING-STUDENT

APPLICATION SHARING-STUDENT APPLICATION SHARING-STUDENT This feature is used to share applications the entire desktop with participants in the Chat Session. It is a type of content that appears in the Content area like the Whiteboard

More information

Object oriented lab /second year / review/lecturer: yasmin maki

Object oriented lab /second year / review/lecturer: yasmin maki 1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return

More information

Instructions for Crossword Assignment CS130

Instructions for Crossword Assignment CS130 Instructions for Crossword Assignment CS130 Purposes: Implement a keyboard interface. 1. The program you will build is meant to assist a person in preparing a crossword puzzle for publication. You have

More information

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1 C# Forms and Events VT 2009 Evolution of GUIs Until 1984, console-style user interfaces were standard Mostly dumb terminals as VT100 and CICS Windows command prompt is a holdover In 1984, Apple produced

More information

TuneTown Lab Instructions

TuneTown Lab Instructions TuneTown Lab Instructions Purpose: Practice creating a modal dialog. Incidentally, learn to use a list view control. Credit: This program was designed by Jeff Prosise and published in MSDN Magazine. However,

More information

Visual Programming (761220) First Exam First Semester of Date: I Time: 60 minutes

Visual Programming (761220) First Exam First Semester of Date: I Time: 60 minutes Philadelphia University Lecturer : Mrs. Eman Alnaji Coordinator : Miss. Reem AlQaqa Internal Examiner: Dr. Nameer Al Emam Faculty of Information Technology Department of CIS Examination Paper Visual Programming

More information

SPRITES Making Things Move Around The Screen

SPRITES Making Things Move Around The Screen Unless you re playing something like Zork (GREATEST game in the world BTW!), you will likely need to move images around the screen. In this lesson we re going to work with simple 2D images, normally called

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

Inheriting Windows Forms with Visual C#.NET

Inheriting Windows Forms with Visual C#.NET Inheriting Windows Forms with Visual C#.NET Overview In order to understand the power of OOP, consider, for example, form inheritance, a new feature of.net that lets you create a base form that becomes

More information

The scripting system handles two types of components: Visual and Non-visual components.

The scripting system handles two types of components: Visual and Non-visual components. Forms and Components Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript Overview of Graphical Components The scripting system handles two types of components:

More information

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

Repeating Instructions. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies 6 Repeating Instructions C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Learn why programs use loops Write

More information

5.) In which direction will the statement picplayer.left -= 5 animate picplayer? A. to the right B. to the left C. up the screen D.

5.) In which direction will the statement picplayer.left -= 5 animate picplayer? A. to the right B. to the left C. up the screen D. Visual Basic Practic Final Exam Name: Period: Choose the best answer. 1.) Which concept has to do with strings such as "Mr." and "Minich"? A. Concatenation B. Boolean logic C. Collision Detection D. Boundary

More information

Anatomy of a Window (Windows 7, Office 2010)

Anatomy of a Window (Windows 7, Office 2010) Anatomy of a Window (Windows 7, Office 2010) Each window is made up of bars, ribbons, and buttons. They can be confusing because many of them are not marked clearly and rely only on a small symbol to indicate

More information

Tutorial 03 understanding controls : buttons, text boxes

Tutorial 03 understanding controls : buttons, text boxes Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple

More information

How to Use MessageBox

How to Use MessageBox How to Use MessageBox Contents MessageBox Class... 1 Use MessageBox without checking result... 4 Check MessageBox Return Value... 8 Use a property to save MessageBox return... 9 Check MessageBox return

More information

Create a Scrapbook Page

Create a Scrapbook Page Create a Scrapbook Page You are now going to create a scrapbook page that will contain an arrangement of pictures and text. 1. Open Photoshop start > programs > Adobe Master Collection > Photoshop CS5

More information

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development Blank Form Industrial Programming Lecture 8: C# GUI Development Industrial Programming 1 Industrial Programming 2 First Form Code using System; using System.Drawing; using System.Windows.Forms; public

More information

Session 6. Microsoft and The DigiPen Institute of Technology Webcast Series

Session 6. Microsoft and The DigiPen Institute of Technology Webcast Series Session 6 Microsoft and The DigiPen Institute of Technology Webcast Series HOW TO USE THIS DOCUMENT This e-textbook has been distributed electronically using the Adobe Portable Document Format (PDF) format.

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

Skinning Manual v1.0. Skinning Example

Skinning Manual v1.0. Skinning Example Skinning Manual v1.0 Introduction Centroid Skinning, available in CNC11 v3.15 r24+ for Mill and Lathe, allows developers to create their own front-end or skin for their application. Skinning allows developers

More information

10Tec igrid for.net 6.0 What's New in the Release

10Tec igrid for.net 6.0 What's New in the Release What s New in igrid.net 6.0-1- 2018-Feb-15 10Tec igrid for.net 6.0 What's New in the Release Tags used to classify changes: [New] a totally new feature; [Change] a change in a member functionality or interactive

More information

MenuStrip Control. The MenuStrip control represents the container for the menu structure.

MenuStrip Control. The MenuStrip control represents the container for the menu structure. MenuStrip Control The MenuStrip control represents the container for the menu structure. The MenuStrip control works as the top-level container for the menu structure. The ToolStripMenuItem class and the

More information

Programming with Microsoft Visual Basic.NET. Array. What have we learnt in last lesson? What is Array?

Programming with Microsoft Visual Basic.NET. Array. What have we learnt in last lesson? What is Array? What have we learnt in last lesson? Programming with Microsoft Visual Basic.NET Using Toolbar in Windows Form. Using Tab Control to separate information into different tab page Storage hierarchy information

More information

Developing for Mobile Devices Lab (Part 1 of 2)

Developing for Mobile Devices Lab (Part 1 of 2) Developing for Mobile Devices Lab (Part 1 of 2) Overview Through these two lab sessions you will learn how to create mobile applications for Windows Mobile phones and PDAs. As developing for Windows Mobile

More information

Chapter 2. Ans. C (p. 55) 2. Which is not a control you can find in the Toolbox? A. Label B. PictureBox C. Properties Window D.

Chapter 2. Ans. C (p. 55) 2. Which is not a control you can find in the Toolbox? A. Label B. PictureBox C. Properties Window D. Chapter 2 Multiple Choice 1. According to the following figure, which statement is incorrect? A. The size of the selected object is 300 pixels wide by 300 pixels high. B. The name of the select object

More information

JOURNAL OF OBJECT TECHNOLOGY

JOURNAL OF OBJECT TECHNOLOGY JOURNAL OF OBJECT TECHNOLOGY Online at http://www.jot.fm. Published by ETH Zurich, Chair of Software Engineering JOT, 2009 Vol. 8, No. 1, January-February 2009 EDUCATOR S CORNER A Model-View Implementation

More information

Introduction. Create a New Project. Create the Main Form. Assignment 1 Lights Out! in C# GUI Programming 10 points

Introduction. Create a New Project. Create the Main Form. Assignment 1 Lights Out! in C# GUI Programming 10 points Assignment 1 Lights Out! in C# GUI Programming 10 points Introduction In this lab you will create a simple C# application with a menu, some buttons, and an About dialog box. You will learn how to create

More information

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

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies 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

More information

Module 201 Object Oriented Programming Lecture 10 - Arrays. Len Shand

Module 201 Object Oriented Programming Lecture 10 - Arrays. Len Shand Module 201 Object Oriented Programming Lecture 10 - Arrays Len Shand Methods Arrays One dimensional Multi dimensional The variables you have been working with so far have only been able to hold one value

More information

CALCULATOR APPLICATION

CALCULATOR APPLICATION CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

Peripheral Devices devices attached to the CPU (computer)

Peripheral Devices devices attached to the CPU (computer) Lesson Notes Author: Pamela Schmidt Peripheral Devices devices attached to the CPU (computer) Input Devices allows information to be sent to the computer Pointing Devices Mouse Most mice have two buttons.

More information

Use Default Form Instances

Use Default Form Instances Use Default Form Instances Created: 2011-01-03 Modified:2012-07-05 Contents Introduction... 2 Add Form Classes... 3 Starting Form (Home Page)... 5 Use Multiple Forms... 6 Different Ways of Showing Forms...

More information

Topics. Windows Phone

Topics. Windows Phone Session 4.5 Topics The Story So Far 3 Multi-page applications 4 Adding another page 5 Pages and projects 6 Page Navigation private void page2button_click(object sender, RoutedEventArgs e) { NavigationService.Navigate(

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

ITP 342 Mobile App Dev. Interface Builder in Xcode

ITP 342 Mobile App Dev. Interface Builder in Xcode ITP 342 Mobile App Dev Interface Builder in Xcode New Project From the Main Menu, select the File à New à Project option For the template, make sure Application is selected under ios on the left-hand side

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

Visual BASIC Creating an Application. Choose File New Project from the menu

Visual BASIC Creating an Application. Choose File New Project from the menu Creating an Application Choose File New Project from the menu Choose Windows Application Name the project Copyright Project Place a check in the Create directory for solution box Click Browse Choose and/or

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

2.2 - Layouts. Bforartists Reference Manual - Copyright - This page is Public Domain

2.2 - Layouts. Bforartists Reference Manual - Copyright - This page is Public Domain 2.2 - Layouts Introduction...2 Switching Layouts...2 Standard Layouts...3 3D View full...3 Animation...3 Compositing...3 Default...4 Motion Tracking...4 Scripting...4 UV Editing...5 Video Editing...5 Game

More information

Data Verification and Validation Process in the Management System Development

Data Verification and Validation Process in the Management System Development Middle-East Journal of Scientific Research 25 (5): 902-911, 2017 ISSN 1990-9233 IDOSI Publications, 2017 DOI: 10.5829/idosi.mejsr.2017.902.911 Data Verification and Validation Process in the Management

More information

Sema Foundation ICT Department. Lesson - 18

Sema Foundation ICT Department. Lesson - 18 Lesson - 18 1 Manipulating Windows We can work with several programs at a time in Windows. To make working with several programs at once very easy, we can change the size of the windows by: maximize minimize

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

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application

More information

Mouseless Internet Browsing for Open V/Vmax Devices

Mouseless Internet Browsing for Open V/Vmax Devices Mouseless Internet Browsing for Open V/Vmax Devices Mouseless Browsing (MLB) is a technique that enables you to browse the Internet without using a mouse. This innovative functionality adds small boxes

More information

Module 8: Building a Windows Forms User Interface

Module 8: Building a Windows Forms User Interface Module 8: Building a Windows Forms User Interface Table of Contents Module Overview 8-1 Lesson 1: Managing Forms and Dialog Boxes 8-2 Lesson 2: Creating Menus and Toolbars 8-13 Lab: Implementing Menus

More information

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report Design Of Human Computer Interfaces Assignment 1- Hello World Compliance Report Prepared for: Skip Poehlman Prepared By: K C Course: SE 4D03 Date: September 30, 2008 Contents 1. Code Listing a. Module

More information

19. VB Project and Menu Design

19. VB Project and Menu Design 19. VB Project and Menu Design 19.1 Working with Projects As you develop an application, you work with a project to manage all the different files that make up the application. A VB project consists of:

More information

User Filter State. Chapter 11. Overview of User Filter State. The PDSAUserFilterState Class

User Filter State. Chapter 11. Overview of User Filter State. The PDSAUserFilterState Class Chapter 11 User Filter State When users visit a search page (or an add, edit and delete page with a set of search filters above the grid), each user will enter search criteria, drill down on a search result

More information

DW DIGs Model Windows Tricks

DW DIGs Model Windows Tricks Window Menu 1. Window > Cascade Windows All open windows that aren't minimized at the bottom of the screen will be offset diagonally so you can see the title bar of each. 2. Window > Tile Windows All open

More information

Spring 2009 Wilson Scholar Application. Designing and Analyzing New Algorithms and Heuristics to Solve the Coin-Moving Puzzle

Spring 2009 Wilson Scholar Application. Designing and Analyzing New Algorithms and Heuristics to Solve the Coin-Moving Puzzle Spring 2009 Wilson Scholar Application Designing and Analyzing New Algorithms and Heuristics to Solve the Coin-Moving Puzzle 1 Student and Faculty Information Student Name: Adam Case E-mail address: adam.case@maine.edu

More information

Address Bar. Application. The space provided on a web browser that shows the addresses of websites.

Address Bar. Application. The space provided on a web browser that shows the addresses of websites. Address Bar The space provided on a web browser that shows the addresses of websites. Application Computer software designed to help users perform Specific tasks. Back Button A button at the top of the

More information

Brian Kiser November Vigilant C# 2.5. Commonwealth of Kentucky Frankfort, Kentucky

Brian Kiser November Vigilant C# 2.5. Commonwealth of Kentucky Frankfort, Kentucky Brian Kiser November 2010 Vigilant C# 2.5 Commonwealth of Kentucky Frankfort, Kentucky Table of Contents 1.0 Work Sample Description Page 3 2.0 Skills Demonstrated 2.1 Software development competency using

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Section 5 AGENDA 8. Events

More information

Capturing the Mouse. Dragging Example

Capturing the Mouse. Dragging Example Capturing the Mouse In order to allow the user to drag something, you need to keep track of whether the mouse is "down" or "up". It is "down" from the MouseDown event to the subsequent MouseUp event. What

More information

#using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll>

#using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll> Lecture #9 Introduction Anatomy of Windows Forms application Hand-Coding Windows Form Applications Although Microsoft Visual Studio makes it much easier for developers to create Windows Forms applications,

More information

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Visual 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 information

Exploring Processing

Exploring Processing Exploring Processing What is Processing? Easy-to-use programming environment Let s you edit, run, save, share all in one application Designed to support interactive, visual applications Something we ve

More information

Visual C#.NET. Copyright: Home and Learn This Edition: November 2013 Author: Ken Carney. All rights reserved

Visual C#.NET. Copyright: Home and Learn This Edition: November 2013 Author: Ken Carney. All rights reserved Visual C#.NET Copyright: This Edition: November 2013 Author: Ken Carney All rights reserved Visual C#.NET Contents INTRODUCTION... 7 WHAT YOU NEED TO DO THE COURSE... 7 THE FREE VISUAL C# EXPRESS EDITION...

More information

II. Programming Technologies

II. Programming Technologies II. Programming Technologies II.1 The machine code program Code of algorithm steps + memory addresses: MOV AX,1234h ;0B8h 34h 12h - number (1234h) to AX register MUL WORD PTR [5678h] ;0F7h 26h 78h 56h

More information

XNA 4.0 RPG Tutorials. Part 11b. Game Editors

XNA 4.0 RPG Tutorials. Part 11b. Game Editors XNA 4.0 RPG Tutorials Part 11b Game Editors I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials on

More information

CIS 3260 Intro to Programming in C#

CIS 3260 Intro to Programming in C# Iteration (looping) McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Understand the necessity of this program control structure Describe while loops Describe do while loops Describe

More information

Representative Delegates

Representative Delegates The Inside Track Representative and Reactionary Programming June 2001 I m back from my vacation. It was great, I saw many of the great natural wonders the south and west part of this country has to offer.

More information