An Example of Windows Forms Applications Windows-based application –Win Forms Control structures (selection and repetition) Graphics Read integers from.

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
11 ASP.NET Controls II Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
Using Multiple Forms. Creating a New Form ProjectAdd Windows Form.
Title Description Graphic. Choice A A B C Question Choice B Choice C Graphic.
CS 1400 Using Microsoft Visual Studio 2005 if you don’t have the appropriate appendix.
Creating First Class Web Pages Log into your account.
Using Visual C++ and Pelles C
LaMothe DirectX Game in Visual Studio 2008 Matthew Sable.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Getting Started Example ICS2O curriculum
Neal Stublen Practice Solution  Create a new solution  Add a WinForms project  Add a Class Library project  Reference the library.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
11 Games and Content Session 4.1. Session Overview  Show how games are made up of program code and content  Find out about the content management system.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Moving & Copying Web Applications 1. 2 Why Do We Need to Copy or Move a Web Application?  So you can run someone else’s sample code.  So you can backup.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Computers and programming The 10 th lecture Jiří Šebesta.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
1 Windows Graphics. 2 Objectives You will be able to Use the Windows GDI+ to draw arbitrary figures and text on a Windows form. Add a handler for the.
IT 211 Project Integration and Deployment Lab #11.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Session 08: Architecture Controllers or Managers Graphical User Interface (GUI) FEN AK - IT Softwarekonstruktion.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
Project Deployment IT [211 CAP] How to convert your project to a full application.
Sample Application Multi Layered Architecture (n-tier): –Graphical User Interface (GUI): Forms, components, controls The Visual Designer in Visual Studio.
BIT 285: ( Web) Application Programming Lecture 18: Thursday, March 5, 2015 REST Creating a REST API Instructor: Craig Duckett.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Applications Development
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Information and Communication Technology Sayed Mahbub Hasan Amiri Dhaka Residential Model College Higher Secondary.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Computer Programming and Basic Software Engineering 9 Building Graphical User Interface Creating a Multiple-Form Interface.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
1 Linked Lists II Doubly Linked Lists Chapter 3. 2 Objectives You will be able to: Describe, implement, and use a Doubly Linked List of integers.
Lab00-Getting Started with VC Launch VS 2005 Launch Visual Studio 2005 – Start > All Programs > Microsoft Visual Studio 2005 > Microsoft Visual.
Architecture Multi Layered Architecture (n-tier): Application: Model Controllers Database Access Graphical User Interface (GUI): Forms, components, controls.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Simple Copying an Android project in Eclipse Reference: existing-project-with-a-new-name 1.
Lecture Set 7 Procedures and Event Handlers Part B - The Structure of an Application Event Handlers.
Sorry, the pen lost control. Anyway, you need to download both the.vbp and the.frm for each project. I looked at PrCalc, I did not look at inventory.
1 Introduction to Object Oriented Programming Chapter 10.
The Program Editor1 Visual Basic (VB) supports a text editor (not a word processor) that permits the writing and modification of program code. The editor.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Strings in C++/CLI us/library/system.string.aspxhttp://msdn.microsoft.com/en- us/library/system.string.aspx public: static.
Graphics Lab: MyPaint Dan Maselko 1. MyPaint Description  For this assignment you will be implementing a very simple paint program.  You should be able.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
Visual Studio 2010 Hello World CSC 230.
OpenGL project setup.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Visual programming Chapter 1: Introduction
MFC Dialog Application
Visual Studio 2010 Hello World CSC 230.
CIS16 Application Development Programming with Visual Basic
1. Open Visual Studio 2008.
CIS16 Application Development and Programming using Visual Basic.net
Visual programming Chapter 2: Events and Event Handling
Lab 1 Introduction to C++.
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Steps to Build Frame Window Recipe Application
Presentation transcript:

An Example of Windows Forms Applications Windows-based application –Win Forms Control structures (selection and repetition) Graphics Read integers from a file Classes Event handling Others

Create a form application using Visual C++ Step 0: //Create a Windows Forms application in Visual Studio 2012 –Create an empty Form1 following class web “Useful Links” on “how-to- use …”, –do not add stuffs to the empty Form1 –change Form1’s Text to “CS351”: with the “Form1.h[Design]” active, open the “Properties” window, change the existing “Form1” to “CS351” –Add (copy-paste) code from main.cpp to Form1.cpp by first clicking the Form1.cpp from the “Solution Explorer” window to open it; then modifying the namespace to be your project name; –Build and run, make sure it works

Cont’d I There are two approaches to try to work out the rest of the sample code, –Approach 1 is a direct copy-paste, –Approach 2 takes each step in class. Step1, Approach 1: –Copy the sample code to the Form1.h (double click Form1 in the [Design], modify the namespace to your project name. –Or, copy the sample code file Form1.h to the project directory (replace the existing file); modify the namespace to your project name. –Prepare a text file control.txt with an integer in it. –Build and run –Change the integer in control.txt, run again.

Step1, Approach 2: // read the sample code to help –Open Form1.h, by double clicking Form1 in the [Design] view –Add int choice; to the Form1 class, –Add the code to read an integer from the control.txt file in the Form1’s constructor; add, close to the beginning, to use the System::IO name space. –Add the Form1_Paint event handler to the Form1 class: Go to the [Design] view of Form1, then to the “Properties” window, Right on top, click the icon look like a lightning bolt (the cursor shows “Events”) Find “Paint”, double click (the needed code of the handler function is created, doing nothing) –Copy the body of this function from the part of the sample code (for-loops etc) within the same handler function name. –Prepare a text file control.txt with an integer in it –Build and run –Change the integer in control.txt, run again. Cont’d I

Math Functions There is a class called System::Math double radian=Math::PI/180.0; double y=Math::Sin(x);