Developing for Mobile Devices Lab (Part 1 of 2)

Size: px
Start display at page:

Download "Developing for Mobile Devices Lab (Part 1 of 2)"

Transcription

1 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 is extremely similar to developing desktop Windows applications, you will first learn how to create standard Windows console and GUI programs that can run on any Windows desktop or laptop. There are two labs. In this first lab you will learn the basics of Visual Studio, how to create desktop programs, and how to develop some very basic mobile applications. In the second lab you will develop more advanced mobile applications that make use of the unique capabilities of the mobile device (e.g and Bluetooth). For most of the mobile development in this lab you will use the mobile device emulator, rather than an actual device. However, at the end of the lab you can test the final program on a real mobile device, and we will be using the actual mobile device more in the next lab. For these labs we will be using C# as the language for all our development. This is for two important reasons. Firstly, C# is very similar to Java, which you should already be familiar with. Secondly, C# is the language Microsoft recommends for mobile device development, and as such has the greatest amount of support of all the Visual Studio languages for developing for mobiles. Creating a solution In Visual Studio all development is done within a solution. Solutions are workspaces that can contain a number of projects. Each project in a workspace can contain a program, library, or other code assembly. For example, if you were creating an instant messaging client you might create a solution called MyInstantMessanger. Within that solution you might have two projects, one with the code for the graphical interface of the client and one for the networking code used to send messages. Solutions are workspaces that can contain many individual projects. The first project we will create for these labs is a simple HelloWorld desktop application. When we create this first project we will also create and name the solution we will use throughout the labs. Start by selecting File->New->Project... from the Visual Studio menu. You will be presented with the New Project window. In this window select the language we will be using, Visual C#, from the Project types box and select Windows as the type of application we will be creating. In the Templates box select Console Application. Type ʻHelloWorldʼ in the box for the Name of the project. Finally, call the solution ʻHCI4Labʼ by typing it into the Solution Name box. Check that you have entered the correct information using figure 1, then click OK. Note that the only difference you should see is that you should select a Location in your own ʻMy Documentsʼ folder, or any other filespace you want to use.

2 Figure 1 Once you click OK a new console project will be created, and the code for it will be displayed in the main page. On the right of the screen is the solution explorer. This shows the name of the currently open solution (HCI4Lab) and all the projects within that solution. Just now there is only one project called HelloWorld (as shown in figure 2). Figure 2 Edit the main method to add the following code by simply clicking in the appropriate place and typing it in.

3 static void Main(string[] args) Console.WriteLine( Hello from C# ); Console.Read(); The first line you added will print the text to the console. The second line will stop the program from disappearing immediately by waiting on a character to be input before exiting the program. Test the program by selecting Debug->Start Without Debugging, which will run the program. You should see the text appear in a console. Exit the program by hitting the return key. A desktop GUI app Console applications are only really useful for very simple one off tasks, or tasks that will generally be run in the background without any user intervention. The vast majority of all applications on any platform involve a graphical user interface to allow users to interact with them. Create a new GUI desktop application by right-clicking on the HCI4Lab solution in the solution explorer on the right of the screen and selecting Add->New Project... from the pop-up menu (figure 3). Figure 3 You will again be presented with the Add New Project dialog. Select Windows in the Visual C# dialog again, but this time select Windows Application in the Template box on the right. Name the project HelloWorldGUI in the name box. Use figure 4 to make sure you have selected the right items, then click OK.

4 Figure 4 This time when you click OK you will be presented with a GUI form designer, rather than the code view. In the solution explorer on the right you will now see that there are two projects in the solution. As we are now going to be working with the GUI version, rightclick the HelloWorldGUI project in the solution explorer and select ʻSet as Startup Projectʼ (figure 5). Figure 5 All this does is change the program that starts up when we click things like Start Without Debugging, so now our new GUI app will run when we do that instead of the console app. To edit the form that is now displayed we can use the toolbox and the widgets it contains. By default, the toolbox is docked to a tab on the very left of Visual Studio, click the toolbox to make it expand out. Once it is expanded out you can click the little pin icon to keep it pinned and displayed permanently (figure 6).

5 Figure 6 Drag a label widget off the common controls on the toolbox and onto your form. Then drag a button from the toolbox onto your form. Click once on the label and use the Properties window, at the bottom right underneath the Solution Explorer to set its text property to Hello World. Use the same technique to set the buttonʼs text to Click Me, and the formʼs text to Hello (click anywhere on the form to select it). Your form should look something like figure 7 when you are done... Figure 7 Next, double-click on the button on your form. This will take you to the code view, and your cursor will be located at the code that is executed when the user clicks the button. Edit this code so that it reads as follows... private void button1_click(object sender, EventArgs e) label1.text = VS + C# = easy development ;

6 Note that at any time you can switch between the code and GUI views for the application by selecting the appropriate form (Form1.cs in this case) from the solution explorer, and clicking either the code or GUI button at the top (figure 8). Figure 8 Now test your new GUI application by selecting Debug->Start Without Debugging from the menu. Note that if your console project starts up instead of the GUI app then you must have forgot to set the start-up project. When your GUI app runs you can click the button to change the label text. Note that the application behaves like a regular Windows application (because it is). You can minimize, maximize, and close it just like any regular application. If you use Windows Explorer and navigate to the directory you put your solution in you will find a regular Windows executable file that you can double-click to run your app in... YourFileSpace\HCI4Lab\HelloWorldGUI\bin\Debug\HelloWorldGUI.exe As you can see, the program you have created is a completely standard Windows application. Mobile HelloWorld Now that you know how to create normal Windows applications letʼs try doing exactly the same kind of program for a mobile device. To begin with weʼll develop your mobile application using a mobile device emulator, rather than a real mobile device. However, towards the end of the lab you can try your application on either a mobile phone or PDA. Add another project to your solution by again right-clicking the HCI4Lab solution in the solution explorer and selecting Add->New Project. This time when the Add New Project dialog appears select Visual C#->Smart Device->Windows Mobile 5.0 SmartPhone as the Project type on the left. Select Device Application for the type of project from the template box and name the project HelloWorldPhone. Again, use the screenshot in figure 9 to make sure you have entered the settings correctly, and then click OK.

7 Figure 9 This time the editor that opens when you click okay will show a form inside an image of a phone. Before you begin editing, make sure you again change the startup project to this new one by right-clicking it in the solution explorer and selecting ʻSet as Startup Projectʼ. Use the toolbox to drag a label onto the phone. Edit the label Text property so that it reads Hello Mobile World. Notice at the bottom of the screen you can see an icon labelled mainmenu1. All mobile applications always contain a menu, and this icon is simply showing the menu and its name. The menu itself is actually located on the form (where you added the label); it is the light blue bar at the bottom of the form. Click on the left of this light blue strip and it will become highlighted. Type ʻExitʼ to add a menu entry. Now click on the right of the blue strip and type ʻClick Meʼ on this right menu entry. Your form should now look something like figure Figure 10 Double-click on the ʻExitʼ menu item and Visual Studio will take you to the code that executes when that button is clicked. When the user clicks exit we want the form to close, so simply add a call to the Close() method in the code so that the method reads as follows. private void menuitem1_click(object sender, EventArgs e) Close();

8 Return to the GUI view by clicking the GUI edit button at the top of the solution explorer (figure 11)... Figure 11 Now double-click the ʻClick Meʼ button. Edit the code for this method so that it reads... private void menuitem2_click(object sender, EventArgs e) label1.text = This runs on a phone ; Now test your application by selecting Debug->Start Without Debugging from the menu. This time when you select start a pop-up will appear asking where you want to run the device, on an emulator or on a real phone. Select the WM 5.0 Smartphone Emulator for just now and click deploy. You will see an emulator start up and your application will run on it. You can click the buttons on the fake phone to see how your application reacts. A useful thing to note is that any mobile device program you write can also run on your desktop machine. Remember that the.net Compact Framework for mobile devices is a cut-down version of the full.net Framework found on desktops. So obviously, the Full Framework will be able to run anything targeted for the Compact Framework. You can test this yourself by executing the program on your desktop. You can find it at... YourFileSpace\HCI4Lab\HelloWorldPhone\bin\Debug Mobile Mapping The final application we will create today is a phone application that is a little more complex than the HelloWorld one. This phone application will allow users to navigate a simple map. Once again, right-click the HCI4Lab solution in the solution explorer and select Add->New Project. When the Add New Project dialog appears select Visual C#, Smart Device, WM 5.0 Smartphone from the project types. Select Device Application from the Templates, and name the project ʻPhoneMapʼ. Once more, check the screenshot in figure 12 to ensure you select the right options.

9 Figure 12 After creating the project remember to right-click it and mark it as the startup project since weʼll be using this one from now on. Now in the form editor appears edit the menu for this application. Make the left menu item ʻExitʼ, double-click it, and add the code to call close in the method. Go back to the GUI view and make the right menu item read ʻChangeʼ. Donʼt add any code for it just now. For this project a DLL (Dynamic Link Library) that has been written earlier will be used. Using DLLs is useful because it allows developers to reuse existing code, allowing access to large libraries that support many different functions. The library we are going to use is one that supports mapping. Download the zip file containing the library from the following URL... Navigate to the following location and extract the contents of the zip to it... YourFileSpace/HCI4Lab/PhoneMap Back in Visual Studio, right-click the PhoneMap project and select Add->Existing Item from the popup menu (figure 13). Figure 13

10 In the file dialog that appears change the Files of type at the bottom to search for Image Files. Select the ʻmapʼ image file and click add. The file map.gif will be added to the PhoneMap project in the solution explorer. Select map.gif in the solution explorer and in the properties window below change the ʻCopy to Output Directoryʼ property to ʻCopy if newerʼ (figure 14). Figure 14 Changing this value means that the map.gif file will be copied to the mobile device when you deploy the application. We can then use it to get the image used for the map we are going to display. Now we will create the reference to the DLL we are going to use. Right-click the ʻReferencesʼ entry in the PhoneMap project and select ʻAdd Reference...ʼ (figure 15). Figure 15 In the dialog that appears select the mapping DLL we copied over, SmapsLibCF.dll, and click OK. The DLL is now linked into the project, and will be copied to the mobile device when we deploy the application. Select PhoneMapʼs Form.cs file and click the Code Editor button to view the code. To use the mapping DLL in our code we must specify that we are going to be using it at the top of the code. At the top of the code, after the other using statements, add one for the library. The code at the top should read... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using SmapsLibCF; // this is the line that is to be added

11 The main component from the map DLL that we will use is a map viewer which is contained in a class called Viewer. Create a reference to an instance of this class by adding the following code just above the Form1 constructor. private Viewer myviewer; public Form1() Next myviewer must be initialised, added to the form, and its KeyPress event must be hooked into so that it can respond when the user presses keys. Do this initialising by changing the Form1 constructor so that it reads as follows (note, you donʼt have to copy the comments)... public Form1() InitializeComponent(); // initialise the instance of the viewer myviewer = new Viewer(); // tell the viewer not to use the default template, we will customise it instead myviewer.usetemplate = false; // create a rectangular viewport GeoRectangle rect = new GeoRectangle(0, 0, 100, 100); // create a map layer that displays the image we copied earlier using the viewport above ImageLayer maplayer = new ImageLayer( \\Program Files\\PhoneMap\\map.gif, rect); myviewer.addlayer(maplayer); // set the location of the viewer on the form to the very top-left myviewer.location = new Point(0, 0); // set the size of the viewer to be the same as the form itself myviewer.size = new Size(this.Width, this.height); // add the viewer to the form s controls Controls.Add(myViewer); After adding this code you can test the application by running it using Debug->Start Without Debugging. You should see that the application loads and the map appears, but you can not interact with it yet as no code has been added to respond to key presses. Add the following line to the bottom of the Form1() constructor... // hook in the viewer s keypress event so that it will respond to key presses // note that as soon as you type += here you can then press tab twice to auto-generate the method // that will be executed when a press key occurs myviewer.keypress += new KeyPressEventHandler(myViewer_KeyPress); Next, create (or edit if you auto-generated) the myviewer_keypress method so that it is as follows, again you can ignore the comments if you want...

12 void myviewer_keypress(object sender, KeyPressEventArgs e) int x = myviewer.location.x; int y = myviewer.location.y; int width = myviewer.size.width; int height = myviewer.size.height; switch (e.keychar) case '2': myviewer.location = new Point(x, y + 10); case '8': myviewer.location = new Point(x, y - 10); case '4': myviewer.location = new Point(x + 10, y); case '6': myviewer.location = new Point(x - 10, y); case '1': myviewer.size = new Size(width + 50, height + 50); case '3': myviewer.size = new Size(width - 50, height - 50); default: This code simply moves the map North, East, South or West depending if 2, 6, 8 or 4 is pressed. Additionally, if the user presses 1 or 3 the map will zoom in or out respectively. You can again test the application by running it, and it should now react correctly when you press the number keys. As the final step today is to test the application on an actual phone or PDA the last bit of code we will write will allow the map to be controlled on the PDA. Many PDAs do not have keypads, but they do have touchscreens, so the code we will add will make use of that input method instead. Go back to the GUI editor for the form and double-click the Change menu item you created earlier. In the method it takes you to add the following code, which allows the user to switch between panning and zooming using a touchscreen... private void menuitem2_click(object sender, EventArgs e) if (viewer.currenttool == "PanTool") viewer.settool("zoomtool"); else viewer.settool("pantool"); On the phone this code will have no affect, but without it the map could not be navigated on PDAs. It is often the case when developing for mobile devices that you must account for the many different input methods and hardware they support.

13 Now that you have finished the final application for today, ask for a phone or PDA to test your program on a real device. Conclusion Today you have had a very short introduction to Visual Studio and developing for mobile devices. Feel free to play around with Visual Studio to create your own desktop or mobile applications. Visual Studio can be used to create any Windows application at all - such as games, calculators, word processors, and instant messaging clients. Indeed, virtually every application you use in Windows on a daily basis was most likely created using Visual Studio. Remember, Visual Studio is by far the most popular development environment in use today, and experience in it is in extremely high demand by employers. Now that you have the knowledge to create basic mobile applications, in the next lab we will look at using a couple of more advanced mobile features. Namely, calling native code from mobile devices and accessing Bluetooth and hardware. Finished early? If you finish early then please use the extra time to explore Visual Studio more. Try creating more GUI applications that use the other graphical widgets available in the toolbox, such as the ProgressBar, PictureBox and ListView.

Developing for Mobile Devices Lab (Part 2 of 2)

Developing for Mobile Devices Lab (Part 2 of 2) Developing for Mobile Devices Lab (Part 2 of 2) Overview In the previous lab you learned how to create desktop and mobile applications using Visual Studio. Two important features that were not covered

More information

Conventions in this tutorial

Conventions in this tutorial This document provides an exercise using Digi JumpStart for Windows Embedded CE 6.0. This document shows how to develop, run, and debug a simple application on your target hardware platform. This tutorial

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

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

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

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

IBSDK Quick Start Tutorial for C# 2010

IBSDK Quick Start Tutorial for C# 2010 IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup

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

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

Getting started 7. Setting properties 23

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

More information

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

INFORMATICS LABORATORY WORK #2

INFORMATICS LABORATORY WORK #2 KHARKIV NATIONAL UNIVERSITY OF RADIO ELECTRONICS INFORMATICS LABORATORY WORK #2 SIMPLE C# PROGRAMS Associate Professor A.S. Eremenko, Associate Professor A.V. Persikov 2 Simple C# programs Objective: writing

More information

Konark - Writing a KONARK Sample Application

Konark - Writing a KONARK Sample Application icta.ufl.edu http://www.icta.ufl.edu/konarkapp.htm Konark - Writing a KONARK Sample Application We are now going to go through some steps to make a sample application. Hopefully I can shed some insight

More information

Engr 123 Spring 2018 Notes on Visual Studio

Engr 123 Spring 2018 Notes on Visual Studio Engr 123 Spring 2018 Notes on Visual Studio We will be using Microsoft Visual Studio 2017 for all of the programming assignments in this class. Visual Studio is available on the campus network. For your

More information

In the first class, you'll learn how to create a simple single-view app, following a 3-step process:

In the first class, you'll learn how to create a simple single-view app, following a 3-step process: Class 1 In the first class, you'll learn how to create a simple single-view app, following a 3-step process: 1. Design the app's user interface (UI) in Xcode's storyboard. 2. Open the assistant editor,

More information

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

2 Getting Started. Getting Started (v1.8.6) 3/5/2007 2 Getting Started Java will be used in the examples in this section; however, the information applies to all supported languages for which you have installed a compiler (e.g., Ada, C, C++, Java) unless

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

Start Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.

Start Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock. C# Tutorial - Create a YouTube Alarm Clock in Visual Studio In this tutorial we will create a simple yet elegant YouTube alarm clock in Visual Studio using C# programming language. The main idea for this

More information

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER? 1 A Quick Tour WHAT S IN THIS CHAPTER? Installing and getting started with Visual Studio 2012 Creating and running your fi rst application Debugging and deploying an application Ever since software has

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

Visual Studio.NET.NET Framework. Web Services Web Forms Windows Forms. Data and XML classes. Framework Base Classes. Common Language Runtime

Visual Studio.NET.NET Framework. Web Services Web Forms Windows Forms. Data and XML classes. Framework Base Classes. Common Language Runtime Intro C# Intro C# 1 Microsoft's.NET platform and Framework.NET Enterprise Servers Visual Studio.NET.NET Framework.NET Building Block Services Operating system on servers, desktop, and devices Web Services

More information

Getting started 7. Setting properties 23

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

More information

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox] C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open

More information

Dive Into Visual C# 2008 Express

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

More information

INTERNET ORDERING YOU ARE NOW READY TO START YOUR ORDER SETTING UP YOUR COMPUTER IT S AS EASY AS NOTE: WHEN LOADING

INTERNET ORDERING YOU ARE NOW READY TO START YOUR ORDER SETTING UP YOUR COMPUTER IT S AS EASY AS NOTE: WHEN LOADING SETTING UP YOUR COMPUTER IT S AS EASY AS 1-2 - 3 NOTE: WHEN LOADING THE WEB ORDER TOOLS: 1. When you first load from the our link provided to you, it will load JAVA 1.4.1.02 and the web ordering application.

More information

Pan London Suspected Cancer Referral Forms for GPs A step-by-step guide to installing, using and ing the forms for GPs using EMIS Web

Pan London Suspected Cancer Referral Forms for GPs A step-by-step guide to installing, using and  ing the forms for GPs using EMIS Web Pan London Suspected Cancer Referral Forms for GPs A step-by-step guide to installing, using and emailing the forms for GPs using EMIS Web Dr Ian Rubenstein Eagle House Surgery Ponders End Enfield 1 Table

More information

Roxen Content Provider

Roxen Content Provider Roxen Content Provider Generation 3 Templates Purpose This workbook is designed to provide a training and reference tool for placing University of Alaska information on the World Wide Web (WWW) using the

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

Create your own Meme Maker in C#

Create your own Meme Maker in C# Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.

More information

CS311 - Neural Nets Lab Thursday, April 11

CS311 - Neural Nets Lab Thursday, April 11 CS311 - Neural Nets Lab Thursday, April 11 In class today we re going to be playing with a software that simulates neural networks to get a better feeling for how they work, how they can be used to solve

More information

Starting Visual Studio 2005

Starting Visual Studio 2005 Starting Visual Studio 2005 1 Startup Language 1. Select Language 2. Start Visual Studio If this is your first time starting VS2005 after installation, you will probably see this screen. It is asking you

More information

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit ICOM 4015 Advanced Programming Laboratory Chapter 1 Introduction to Eclipse, Java and JUnit University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction This

More information

INFORMATICS LABORATORY WORK #4

INFORMATICS LABORATORY WORK #4 KHARKIV NATIONAL UNIVERSITY OF RADIO ELECTRONICS INFORMATICS LABORATORY WORK #4 MAZE GAME CREATION Associate Professor A.S. Eremenko, Associate Professor A.V. Persikov Maze In this lab, you build a maze

More information

CSE 332: Data Structures and Parallelism Autumn 2017 Setting Up Your CSE 332 Environment In this document, we will provide information for setting up Eclipse for CSE 332. The first s ection covers using

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

Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application

Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application Please do not remove this manual from the lab Information in this document is subject to change

More information

Bucknell University Digital Collections. LUNA Insight User Guide February 2006

Bucknell University Digital Collections. LUNA Insight User Guide February 2006 Bucknell University Digital Collections LUNA Insight User Guide February 2006 User Guide - Table of Contents Topic Page Number Installing Insight. 2-4 Connecting to Insight 5 Opening Collections. 6 Main

More information

Chapter 1 Getting Started

Chapter 1 Getting Started Chapter 1 Getting Started The C# class Just like all object oriented programming languages, C# supports the concept of a class. A class is a little like a data structure in that it aggregates different

More information

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition 1 Starting Strong with Visual C# 2005 Express Edition Okay, so the title of this chapter may be a little over the top. But to be honest, the Visual C# 2005 Express Edition, from now on referred to as C#

More information

Getting Started (1.8.7) 9/2/2009

Getting Started (1.8.7) 9/2/2009 2 Getting Started For the examples in this section, Microsoft Windows and Java will be used. However, much of the information applies to other operating systems and supported languages for which you have

More information

Lab Android Development Environment

Lab Android Development Environment Lab Android Development Environment Setting up the ADT, Creating, Running and Debugging Your First Application Objectives: Familiarize yourself with the Android Development Environment Important Note:

More information

Laboratory 1: Eclipse and Karel the Robot

Laboratory 1: Eclipse and Karel the Robot Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also

More information

Quick Guide for the ServoWorks.NET API 2010/7/13

Quick Guide for the ServoWorks.NET API 2010/7/13 Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET

More information

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version

More information

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09 Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09 Hello, today we will create another application called a math quiz. This

More information

(Refer Slide Time: 1:12)

(Refer Slide Time: 1:12) Mobile Computing Professor Pushpendra Singh Indraprastha Institute of Information Technology Delhi Lecture 06 Android Studio Setup Hello, today s lecture is your first lecture to watch android development.

More information

1) Log on to the computer using your PU net ID and password.

1) Log on to the computer using your PU net ID and password. CS 150 Lab Logging on: 1) Log on to the computer using your PU net ID and password. Connecting to Winter: Winter is the computer science server where all your work will be stored. Remember, after you log

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

Eclipse Setup. Opening Eclipse. Setting Up Eclipse for CS15

Eclipse Setup. Opening Eclipse. Setting Up Eclipse for CS15 Opening Eclipse Eclipse Setup Type eclipse.photon & into your terminal. (Don t open eclipse through a GUI - it may open a different version.) You will be asked where you want your workspace directory by

More information

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas.

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas. GIS LAB 1 Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas. ArcGIS offers some advantages for novice users. The graphical user interface is similar to many Windows packages

More information

Getting Started with Windows Mobile Development Windows Mobile SDK C#

Getting Started with Windows Mobile Development Windows Mobile SDK C# Getting Started with Windows Mobile Development Windows Mobile SDK C# Contents Overview... 2 Target Audience... 2 System Prerequisites... 2 Installations... 5 Creating Your First Zebra Mobile Application...

More information

Summer Assignment for AP Computer Science. Room 302

Summer Assignment for AP Computer Science. Room 302 Fall 2016 Summer Assignment for AP Computer Science email: hughes.daniel@north-haven.k12.ct.us website: nhhscomputerscience.com APCS is your subsite Mr. Hughes Room 302 Prerequisites: You should have successfully

More information

Chapter 12. Tool Strips, Status Strips, and Splitters

Chapter 12. Tool Strips, Status Strips, and Splitters Chapter 12 Tool Strips, Status Strips, and Splitters Tool Strips Usually called tool bars. The new ToolStrip class replaces the older ToolBar class of.net 1.1. Create easily customized, commonly employed

More information

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python

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

Application Notes for Deploying a VoiceXML Application Using Avaya Interactive Response and Audium Studio - Issue 1.0

Application Notes for Deploying a VoiceXML Application Using Avaya Interactive Response and Audium Studio - Issue 1.0 Avaya Solution & Interoperability Test Lab Application Notes for Deploying a VoiceXML Application Using Avaya Interactive Response and Audium Studio - Issue 1.0 Abstract These Application Notes provide

More information

ADOBE DREAMWEAVER CS4 BASICS

ADOBE DREAMWEAVER CS4 BASICS ADOBE DREAMWEAVER CS4 BASICS Dreamweaver CS4 2 This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site layout,

More information

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio ECE2049 Embedded Computing in Engineering Design Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab, you will be introduced to the Code Composer Studio

More information

GoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next.

GoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next. Getting Started From the Start menu, located the Adobe folder which should contain the Adobe GoLive 6.0 folder. Inside this folder, click Adobe GoLive 6.0. GoLive will open to its initial project selection

More information

3 Getting Started with Objects

3 Getting Started with Objects 3 Getting Started with Objects If you are an experienced IDE user, you may be able to do this tutorial without having done the previous tutorial, Getting Started. However, at some point you should read

More information

Scientific Visualization A Programming Guide using Fltk and Visual Studio

Scientific Visualization A Programming Guide using Fltk and Visual Studio Scientific Visualization A Programming Guide using Fltk and Visual Studio Programming Guide: 1. Software Environment The homework is designed to give you a good exposure to standard programming practices

More information

Introduction to IBM Rational HATS For IBM System i (5250)

Introduction to IBM Rational HATS For IBM System i (5250) Introduction to IBM Rational HATS For IBM System i (5250) Introduction to IBM Rational HATS 1 Lab instructions This lab teaches you how to use IBM Rational HATS to create a Web application capable of transforming

More information

Department of Computer Science University of Pretoria. Introduction to Computer Science COS 151

Department of Computer Science University of Pretoria. Introduction to Computer Science COS 151 Department of Computer Science University of Pretoria Introduction to Computer Science COS 151 Practical 1 16 February 2018 1 Plagiarism Policy The Department of Computer Science considers plagiarism as

More information

Eyes of the Dragon - XNA Part 37 Map Editor Revisited

Eyes of the Dragon - XNA Part 37 Map Editor Revisited Eyes of the Dragon - XNA Part 37 Map Editor Revisited I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported operating systems

More information

Program and Graphical User Interface Design

Program and Graphical User Interface Design CHAPTER 2 Program and Graphical User Interface Design OBJECTIVES You will have mastered the material in this chapter when you can: Open and close Visual Studio 2010 Create a Visual Basic 2010 Windows Application

More information

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang Eclipse Tutorial For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Getting Started with Eclipse Choosing a Perspective Creating a Project Creating a Java

More information

CS1110 Lab 1 (Jan 27-28, 2015)

CS1110 Lab 1 (Jan 27-28, 2015) CS1110 Lab 1 (Jan 27-28, 2015) First Name: Last Name: NetID: Completing this lab assignment is very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness

More information

Tangents. In this tutorial we are going to take a look at how tangents can affect an animation.

Tangents. In this tutorial we are going to take a look at how tangents can affect an animation. Tangents In this tutorial we are going to take a look at how tangents can affect an animation. One of the 12 Principles of Animation is called Slow In and Slow Out. This refers to the spacing of the in

More information

CSE 332: Data Structures and Parallelism Winter 2019 Setting Up Your CSE 332 Environment

CSE 332: Data Structures and Parallelism Winter 2019 Setting Up Your CSE 332 Environment CSE 332: Data Structures and Parallelism Winter 2019 Setting Up Your CSE 332 Environment This document guides you through setting up Eclipse for CSE 332. The first section covers using gitlab to access

More information

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs Linux Tutorial #1 Introduction The Linux operating system is now over 20 years old, and is widely used in industry and universities because it is fast, flexible and free. Because Linux is open source,

More information

Creating a Class Library You should have your favorite version of Visual Studio open. Richard Kidwell. CSE 4253 Programming in C# Worksheet #2

Creating a Class Library You should have your favorite version of Visual Studio open. Richard Kidwell. CSE 4253 Programming in C# Worksheet #2 Worksheet #2 Overview For this worksheet, we will create a class library and then use the resulting dynamic link library (DLL) in a console application. This worksheet is a start on your next programming

More information

PART 1: Getting Started

PART 1: Getting Started Programming in C++ / FASTTRACK TUTORIALS Introduction PART 1: Getting Started Welcome to the first article in the C++ FASTTRACK tutorial series! These tutorials are designed to take you from zero to a

More information

RTMS - Software Setup

RTMS - Software Setup RTMS - Software Setup These instructions are for setting up the RTMS (Robot Tracking & Management System) software. This software will run on your PC/MAC and will be used for various labs in order to allow

More information

Direct DataSafe for Dazzle Pawn SETUP and USE of program

Direct DataSafe for Dazzle Pawn SETUP and USE of program Direct DataSafe for Dazzle Pawn SETUP and USE of program Direct DataSafe for Dazzle Pawn (DDS for short) is designed specifically for reporting data from your Dazzle Pawn database and sending it automatically

More information

Prerequisites for Eclipse

Prerequisites for Eclipse Prerequisites for Eclipse 1 To use Eclipse you must have an installed version of the Java Runtime Environment (JRE). The latest version is available from java.com/en/download/manual.jsp Since Eclipse includes

More information

Laboratory Assignment #4 Debugging in Eclipse CDT 1

Laboratory Assignment #4 Debugging in Eclipse CDT 1 Lab 4 (10 points) November 20, 2013 CS-2301, System Programming for Non-majors, B-term 2013 Objective Laboratory Assignment #4 Debugging in Eclipse CDT 1 Due: at 11:59 pm on the day of your lab session

More information

We assume that the user has basic knowledge of C# and is able to create a new C# project.

We assume that the user has basic knowledge of C# and is able to create a new C# project. After installing the Emgu CV library, our first task is to get started and make something interesting happen. Here, we are going to start our first Emgu CV project. Using Emgu CV is not as difficult as

More information

Introduction. 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 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 information

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at: This document describes how to create a simple Windows Forms Application using some Open Core Interface functions in C# with Microsoft Visual Studio Express 2013. 1 Preconditions The Open Core Interface

More information

The QuickCalc BASIC User Interface

The QuickCalc BASIC User Interface The QuickCalc BASIC User Interface Running programs in the Windows Graphic User Interface (GUI) mode. The GUI mode is far superior to running in the CONSOLE mode. The most-used functions are on buttons,

More information

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011 Hands-On Lab Lab: Client Object Model Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA

More information

Chapter 2 Exploration of a Visual Basic.Net Application

Chapter 2 Exploration of a Visual Basic.Net Application Chapter 2 Exploration of a Visual Basic.Net Application We will discuss in this chapter the structure of a typical Visual Basic.Net application and provide you with a simple project that describes the

More information

Sample A2J Guided Interview & HotDocs Template Exercise

Sample A2J Guided Interview & HotDocs Template Exercise Sample A2J Guided Interview & HotDocs Template Exercise HotDocs Template We are going to create this template in HotDocs. You can find the Word document to start with here. Figure 1: Form to automate Converting

More information

Instructions PLEASE READ (notice bold and underlined phrases)

Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercises wk02 Lab Basics First Lab of the course Required Reading Java Foundations - Section 1.1 - The Java Programming Language Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercise

More information

WPS Workbench. user guide. "To help guide you through using the WPS user interface (Workbench) to create, edit and run programs"

WPS Workbench. user guide. To help guide you through using the WPS user interface (Workbench) to create, edit and run programs WPS Workbench user guide "To help guide you through using the WPS user interface (Workbench) to create, edit and run programs" Version: 3.1.7 Copyright 2002-2018 World Programming Limited www.worldprogramming.com

More information

R EIN V E N TIN G B U S I N E S S I L E M A. MARK5 Basic guide. - All rights reserved

R EIN V E N TIN G B U S I N E S S I L E M A. MARK5 Basic guide.   - All rights reserved R EIN V E N TIN G B U S I N E S S I L E M A MARK5 Basic guide 0.0 Welcome In this brief guide we will cover the basics of MARK5 such as starting up, understanding the MARK5 interface basics and sending

More information

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations Part I Integrated Development Environment Chapter 1: A Quick Tour Chapter 2: The Solution Explorer, Toolbox, and Properties Chapter 3: Options and Customizations Chapter 4: Workspace Control Chapter 5:

More information

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto CS 170 Java Programming 1 Eclipse@Home Downloading, Installing and Customizing Eclipse at Home Slide 1 CS 170 Java Programming 1 Eclipse@Home Duration: 00:00:49 What is Eclipse? A full-featured professional

More information

In this exercise you will gain hands-on experience using STK X to embed STK functionality in a container application created with C#.

In this exercise you will gain hands-on experience using STK X to embed STK functionality in a container application created with C#. STK X Tutorial - C# In this exercise you will gain hands-on experience using STK X to embed STK functionality in a container application created with C#. CONTENTS TUTORIAL SOURCE CODE... 1 CREATE THE PROJECT...

More information

Laboratory Assignment #3 Eclipse CDT

Laboratory Assignment #3 Eclipse CDT Lab 3 September 12, 2010 CS-2303, System Programming Concepts, A-term 2012 Objective Laboratory Assignment #3 Eclipse CDT Due: at 11:59 pm on the day of your lab session To learn to learn to use the Eclipse

More information

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS. For IBM System i (5250)

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS. For IBM System i (5250) Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS For IBM System i (5250) 1 Lab instructions This lab teaches you how to use IBM Rational HATS to create a rich client plug-in application

More information

Forms for Palm OS Version 4 Manual

Forms for Palm OS Version 4 Manual Forms for Palm OS Version 4 Manual Revision Date 12/05/2007 HanDBase is a Registered Trademark of DDH Software, Inc. All information contained in this manual and all software applications mentioned in

More information

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1 COMP 210: Object-Oriented Programming Lecture Notes 1 Java Program Structure and Eclipse Robert Utterback In these notes we talk about the basic structure of Java-based OOP programs and how to setup and

More information

CS 201 Software Development Methods Spring Tutorial #1. Eclipse

CS 201 Software Development Methods Spring Tutorial #1. Eclipse CS 201 Software Development Methods Spring 2005 Tutorial #1 Eclipse Written by Matthew Spear and Joseph Calandrino Edited by Christopher Milner and Benjamin Taitelbaum ECLIPSE 3.0 DEVELOPING A SIMPLE PROGRAM

More information

Authenticated Instant Messaging With mychat. Bob Booth September 2007 AP-Chat1

Authenticated Instant Messaging With mychat. Bob Booth September 2007 AP-Chat1 Authenticated Instant Messaging With mychat. Bob Booth September 2007 AP-Chat1 University of Sheffield Contents 1. INTRODUCTION... 3 2. INSTALLING SPARK ON YOUR COMPUTER... 4 3. STARTING MYCHAT... 5 3.1

More information

PISCES Installation and Getting Started 1

PISCES Installation and Getting Started 1 This document will walk you through the PISCES setup process and get you started accessing the suite of available tools. It will begin with what options to choose during the actual installation and the

More information

AP Computer Science Unit 1. Writing Programs Using BlueJ

AP Computer Science Unit 1. Writing Programs Using BlueJ AP Computer Science Unit 1. Writing Programs Using BlueJ 1. Open up BlueJ. Click on the Project menu and select New Project. You should see the window on the right. Navigate to wherever you plan to save

More information

Learning vrealize Orchestrator in action V M U G L A B

Learning vrealize Orchestrator in action V M U G L A B Learning vrealize Orchestrator in action V M U G L A B Lab Learning vrealize Orchestrator in action Code examples If you don t feel like typing the code you can download it from the webserver running on

More information

SmartBar for MS CRM 2013

SmartBar for MS CRM 2013 SmartBar for MS CRM 2013 Version 2013.15, March 2014 Installation and User Guide (How to install/uninstall and use SmartBar for MS CRM 2013) The content of this document is subject to change without notice.

More information

Creating a nice GUI. OpenGL and Windows. Note: VS 2003 shown. Create a new Project

Creating a nice GUI. OpenGL and Windows. Note: VS 2003 shown. Create a new Project Creating a nice GUI OpenGL and Windows Windows Forms Programming Roger Crawfis The next several slides will walk you thru a particular design that I like for my applications. The order can be a little

More information