Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m. Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m

Size: px
Start display at page:

Download "Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m. Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m"

Transcription

1 C#

2 property method Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 0m Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m Radius= 7 cm, Color=Red, Weight= 150g, X= 3m, Y= 5m, Z= 0m Radius Color Weight X Y Z 1 10 Red Red Blue Red Pajchar() Radius= 7 ; Weight= 150;

3 event windows form application C# form / project.sln Toolbox Drake Double click properties window

4 view solution explorer code Double click code events properties mouse move form. Back round color Double click mouse move frm T1 Activeform. BackColor = Color. Green ; mouse leave mouse leave Frm T2. Activeform. BackColor = Color. Gray ; click Frm T2. Activeform. BackColor = Color. Green ; Frm T2. Activeform. BackColor = Color. Blue ; Frm T2. Activeform. BackColor = Color. Red ;

5 Massage Box.Show ( " " ); massage box Shown Massage Box.Show ( " " ); enter TextBox1.BackColor = Color.Red; leave TextBox1.BackColor = Color.White; leave If (!(textbox1.text.length > = 5 && textbox1.text.lengh < = 7 )) Massage Box.Show ( " " ); resize Button1.left= form1.activeform.width-button1.width-20; Button1.top= form1.activeform.height-button1. height -45; Activate Form1_Resize (sender, e ); button right anchor Activate Button1.Anchor = Anchor style.button Anchor style.right; anchor fix dock panel

6 panel panel panel dock panel mouse move Button.left ++ ; mouse move If ( e.x <= 50 ) button1.left ++ ; Else buttin1.left -- ; tostring string int mouse move choose picture picture Box If ( e.x <= 50 ) Picture Box1.left ++ ; If (Picture Box1.tag!= "1") Picture Box1.tag = "1"; Picture Box1.image.rotateflip ( rotatefliptype.rotateflip2); Picture Box1.refresh();

7 Else Picture Box1.left -- ; If(Picture Box1.tag!= "2") Picture Box1.tag = "2" ; Picture Box1.image.rotateflip ( rotatefliptype.rotatename flip x ); Picture Box1.refresh(); mouse move Label1. top = e.y; Label1. left = e.x+ 10; mousemove Picture Box1.ImageLocation = " D:\\pics\\1.jpg"; Picture Box1.ImageLocation = " D:\\pics\\2.jpg"; Picture Box1.ImageLocation = " D:\\pics\\3.jpg"; cursen Picture Box1.Image = windowsformsaplication1.properties.resources_1; Picture Box1.Image = windowsformsaplication1.properties.resources_2; Picture Box1.Image = windowsformsaplication1.properties.resources_3; Picture Box1.Image = new Bitmap(" "); Picture Box1.Image = new Bitmap(" "); Picture Box1.Image = new Bitmap(" "); txtdisplay text1 text1 txtdisplay button1 click Text1.text = txtdisplay.text;

8 text1 text1 txtdisplay Text1.text = convert.tostring(convert.toint32(text1.text)+convert.toint32(txtdisplay.text)); click txtdisplay Text1.text = convert.tostring(convert.toint32(text1.text)+convert.toint32(txtdisplay.text)); Txtdisplay.text = text1.text; click text1 false visible Text1.text = convert.tostring(convert.toint32(text1.text) convert.toint32(txtdisplay.text)); Txtdisplay.text = text1.text; click If Else Textbox1.text = "1"; text (textbox1.text == "1") Txtdisplay.text = "1"; name click Txtdisplay.text = convert.tostring(convert.toint32(txtdisplay.text + "1" )); Textbox1.text = "0"; click

9 Ali tick false enabled timer complence interval click Timer. enabled = true ; tick Textbox1. text = "Ali"; picturebox backcolor picturebox enabled = true interval = 1000 If(picturebox1. backcolor == color. red ) picturebox1. backcolor = color. white ; picturebox2. backcolor = color. red ; Else Picturebox2. backcolor = color. white ; picturebox1. backcolor = color. red ; 1- Enabled = true 2- Interval = 1000 text = 0 Lable1. text = convert. tostring ( convert. toint16 ( lable1. text ) + 1 );

10 1- Enabled = true 2- Interval = 1000 picturebox Picturebox1. left ++ ; Timright Timleft Picturebox1. left -- ; If(pictoop. left + pictoop. width + 4 >= form1. Activeform. width ) Timleft. enabled = true ; Timright. enabled = false ; Pictoop. left -- ; ( left -= 2 ) If(pictoop. left <= 0 ) Timleft. enabled = false ; Timright. enabled = true ;

11 namespace tamrin20 public partial class Form1 : Form int a = 0; public Form1() InitializeComponent(); tick private void timer1_tick(object sender, EventArgs e) picturebox1.left+=a; if (picturebox1.left + picturebox1.width+4 >= Form1.ActiveForm.Width) timer1.enabled = false; timer2.enabled = true; private void timer2_tick(object sender, EventArgs e) picturebox1.left-=a; if (picturebox1.left <= 0) timer1.enabled = true; timer2.enabled = false; private void hscrollbar1_scroll(object sender, ScrollEventArgs e) a = hscrollbar1.value; Pictoop.top ++ ; If ( pictoop.top + pictoop.height >= form1.activeform.height 34 ) Timer3.enabled = false ;

12 Timer4.enabled = true ; Pictoop.top -- ; If ( pictoop. top <= 0 ) Timer3.enabled = true ; Timer4.enabled = false ; private void timer1_tick(object sender, EventArgs e) picturebox1.left++; if (picturebox1.left + picturebox1.width+4 >= Form1.ActiveForm.Width) timer1.enabled = false; timer2.enabled = true; private void timer2_tick(object sender, EventArgs e) picturebox1.left--; if (picturebox1.left <= 0) timer2.enabled = false; timer1.enabled = true; private void timer3_tick(object sender, EventArgs e) picturebox1.top++; if (picturebox1.top + picturebox1.height+34 >= Form1.ActiveForm.Height) timer3.enabled = false; timer4.enabled = true; private void timer4_tick(object sender, EventArgs e) picturebox1.top--; if (picturebox1.top <= 0) timer4.enabled = false; timer3.enabled = true; tick

13 private void Form1_Load(object sender, EventArgs e) timer1.enabled = true; timer3.enabled = true; build properties Solution publish output Brows finish publish build properties solution exe build build output output clean build exe set up exe publish build HScrollBar TextBox PicTir.top -= 10; If ( PicTir.top + PicTir.height <= 0) PicTir.top = 240 ; picturebox false Timtir.enabled = true; PicTir.top -=10; If ( PicTir.top + PicTir.height <= 0 ) PicTir.top = 240; Timer.enabled = false; PicTir.left = pictoop.left + pictoop.width/2; PicTir.top = pictoop.top; Timtir.enabled = true; keydown properties true keypreview If ( e.keyvalue == 32 ) PicTir.left = pictoop.left + pictoop.width/2 ; space

14 PicTir.top = pictoop.top ; Timtir.enabled = true ; PicTir.visible = true ; PicTir.top -=10 ; If ( PicTir.top + PicTir.height <= 0 ) Timtir.enabled = false ; PicTir.visible = false ; private void timer1_tick(object sender, EventArgs e) picturebox1.left++; if (picturebox1.left + picturebox1.width + 8 >= Form1.ActiveForm.Width) timer1.enabled = false; timer2.enabled = true; private void timer2_tick(object sender, EventArgs e) picturebox1.left--; if (picturebox1.left <= 0) timer2.enabled = false; timer1.enabled = true; private void timer3_tick(object sender, EventArgs e) picturebox1.top++; if (picturebox1.top + picturebox1.height + 34 >= Form1.ActiveForm.Height) timer3.enabled = false; timer4.enabled = true; private void timer4_tick(object sender, EventArgs e) picturebox1.top--; if (picturebox1.top <= 0) timer4.enabled = false; timer3.enabled = true; private void timer5_tick(object sender, EventArgs e) picturebox2.top -= 10; if (picturebox2.top + picturebox1.height <= 0)

15 timer5.enabled = false; picturebox2.visible = false; picturebox2.left = picturebox1.left + picturebox1.width / 2-7; picturebox2.top = picturebox1.top; private void Form1_KeyDown(object sender, KeyEventArgs e) if (e.keyvalue == 32) timer5.enabled = true; picturebox2.visible = true; private void Form1_Load(object sender, EventArgs e) picturebox2.visible = false; timer1.enabled = true; timer3.enabled = true; Pichadaf. left -= 2 ; If ( pichadaf. left <= PicTir. left && pichadaf. left + pichadaf.width >= PicTir.left && pichadaf. top <= PicTir.top && pichadaf. top + pichadaf.height >= PicTir.top ) Lblpro. text = convert.tostring(convert.toint16(lblpro.text)+1) ; Pichadaf.left = form1.activeform.width ; lblpro

16 component choose items windows media player windows media player properties File Name or URL: Auto start : Select a mode : invisible false toolbox visible axwindowsmediaplayer1.ctlcontrols.play() ; axwindowsmediaplayer1.ctlcontrols.pause() ; axwindowsmediaplayer1.ctlcontrols.stop(); axwindowsmediaplayer1.ctlcontrols.play(); if size mode import height width size text Picturebox1. width = hscrollbar. value ; Picturebox1. height = hscrollbar. value * 70 / 100 ; value maximum choosepicture picturebox hscrolbar stretch textbox scroll minimum mousemove If ( e.button.tostring() = " left " ; Picturebox1.top += (e.y convert.toint32(textbox1.text)) ; Picturebox1.left += (e.x convert.toint32(textbox2.text)) ;

17 Textbox1.text = e.x.tostring() ; Textbox2.text = e.y.tostring() ; mousedown textbox picturebox1.left = (form.activeform.width picturebox1.width) / 2 ; chechbox chechbox //checkbox1.checked=!checkbox1.checked; if (checkbox1.checkstate==checkstate.unchecked) checkbox1.checkstate=checkstate.checked; else if(checkbox1.checkstate==checkstate.checked ) checkbox1.checkstate=checkstate.indeterminate; else checkbox1.checkstate=checkstate.unchecked ; Project / add form / form Form2.Activeform.show(); Label radio button

18 radio button radio button groupbox radio button groupbox True checked Lable1.text=" "; If (radiobutton1.checked= true) Lable1.text= label1.text + " "; Else Lable1.text= label1.text + " "; If (radiobutton4.checked= true) Lable1.text= label1.text + " "; Else Lable1.text= label1.text + " "; label1.text = " "+ (radiobutton1.checked?" ":" ")+ " " + (radiobutton3.checked? " " : " ") + " "; textbox combo combobox combo

19 textbox items Combobox.items.add (textbox.text);

20 This document was created with Win2PDF available at The unregistered version of Win2PDF is for evaluation or non-commercial use only.

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

Class Test 5. Create a simple paint program that conforms to the following requirements.

Class Test 5. Create a simple paint program that conforms to the following requirements. Class Test 5 Question 1 Use visual studio 2012 ultimate to create a C# windows forms application. Create a simple paint program that conforms to the following requirements. The control box is disabled

More information

Else. End If End Sub End Class. PDF created with pdffactory trial version

Else. End If End Sub End Class. PDF created with pdffactory trial version Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal

More information

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

More information

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

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

More information

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

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

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

More information

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

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

A Second Visual BASIC Application : Greetings

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

More information

Programming in C# Project 1:

Programming in C# Project 1: Programming in C# Project 1: Set the text in the Form s title bar. Change the Form s background color. Place a Label control on the Form. Display text in a Label control. Place a PictureBox control on

More 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

In this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics.

In this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics. Additional Controls, Scope, Random Numbers, and Graphics CS109 In this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics. Combo

More information

(0,0) (600, 400) CS109. PictureBox and Timer Controls

(0,0) (600, 400) CS109. PictureBox and Timer Controls CS109 PictureBox and Timer Controls Let s take a little diversion and discuss how to draw some simple graphics. Graphics are not covered in the book, so you ll have to use these notes (or the built-in

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

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

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

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

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

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

Tutorial 3 - Welcome Application

Tutorial 3 - Welcome Application 1 Tutorial 3 - Welcome Application Introduction to Visual Programming Outline 3.1 Test-Driving the Welcome Application 3.2 Constructing the Welcome Application 3.3 Objects used in the Welcome Application

More 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

Chapter 13. Graphics, Animation, Sound and Drag-and-Drop The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 13. Graphics, Animation, Sound and Drag-and-Drop The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 13 Graphics, Animation, Sound and Drag-and-Drop McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Use Graphics methods to draw shapes, lines, and filled

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

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

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

Chapter 12: Using Controls

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

More information

namespace led { public partial class Form1 : Form { SerialPort seriport;

namespace led { public partial class Form1 : Form { SerialPort seriport; 1 # 1 x 330 Ω direnç, 1 x LED // C# - Arduino LED yak-söndür void setup() pinmode(53,output); void loop() if (Serial.available()) char x=serial.read(); if (x=='a') digitalwrite(53,high); if (x=='k') digitalwrite(53,low);

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

if (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.

if (say==0) { k.commandtext = Insert into kullanici(k_adi,sifre) values(' + textbox3.text + ',' + textbox4.text + '); k. 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; using System.Data.SqlClient;

More information

ComponentOne. TouchToolkit for WinForms

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

More information

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

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

More information

Gathering and Modifying Real-Time Software Data in a Visual Studio Environment Mark Rogers November 6, 2008

Gathering and Modifying Real-Time Software Data in a Visual Studio Environment Mark Rogers November 6, 2008 Gathering and Modifying Real-Time Software Data in a Visual Studio Environment Mark Rogers November 6, 2008 Executive Summary The topics discussed in this application note include gathering real-time software

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

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

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

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

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

UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS

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

More information

Using Visual Basic Studio 2008

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

More information

Visual Basic 6 Lecture 7. The List Box:

Visual Basic 6 Lecture 7. The List Box: The List Box: The function of the List Box is to present a list of items where the user can click and select the items from the list or we can use the List Box control as a simple memory to save data.

More information

Creating Fill-able Forms using Acrobat 7.0: Part 1

Creating Fill-able Forms using Acrobat 7.0: Part 1 Creating Fill-able Forms using Acrobat 7.0: Part 1 The first step in creating a fill-able form in Adobe Acrobat is to generate the form with all its formatting in a program such as Microsoft Word. Then

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

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

B.V Patel Institute of BMC & IT, UTU

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

More information

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

Lesson 4 Customize the ToolBox

Lesson 4 Customize the ToolBox Lesson 4 Customize the ToolBox In this lesson you will learn how to: Change the toolbox to be a Floating toolbox or a toolbox anchored on the Sidebar. Change the combo ToolBox size and highlighting. Change

More information

Instructions for writing Web Services using Microsoft.NET:

Instructions for writing Web Services using Microsoft.NET: Instructions for writing Web Services using Microsoft.NET: Pre-requisites: Operating System: Microsoft Windows XP Professional / Microsoft Windows 2000 Professional / Microsoft Windows 2003 Server.NET

More information

Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project

Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project 1 Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project Copyright by V. Miszalok, last update: 04-01-2006 using namespaces using System; //Namespace of the base class

More information

UNIT-3. Prepared by R.VINODINI 1

UNIT-3. Prepared by R.VINODINI 1 Prepared by R.VINODINI 1 Prepared by R.VINODINI 2 Prepared by R.VINODINI 3 Prepared by R.VINODINI 4 Prepared by R.VINODINI 5 o o o o Prepared by R.VINODINI 6 Prepared by R.VINODINI 7 Prepared by R.VINODINI

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

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

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 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

More information

Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers

Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers VISUAL BASIC Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers Copyright 2015 Dan McElroy Topics Covered OProject Definition OMultiple versions of the program ODetermine the

More information

Introductionto the Visual Basic Express 2008 IDE

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

More information

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

Setup Examples. RTPView Project Program

Setup Examples. RTPView Project Program Setup Examples RTPView Project Program RTPView Project Program Example 2005, 2007, 2008, 2009 RTP Corporation Not for reproduction in any printed or electronic media without express written consent from

More information

Interface Design in C#

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

More information

Yes, this is still a listbox!

Yes, this is still a listbox! Yes, this is still a listbox! Step 1: create a new project I use the beta 2 of Visual Studio 2008 ( codename Orcas ) and Expression Blend 2.0 September preview for this tutorial. You can download the beta2

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 Science 110. NOTES: module 8

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

More information

VBA Foundations, Part 7

VBA Foundations, Part 7 Welcome to this months edition of VBA Foundations in its new home as part of AUGIWorld. This document is the full version of the article that appears in the September/October issue of Augiworld magazine,

More information

Dive Into Visual C# 2010 Express

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

More information

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

2 USING VB.NET TO CREATE A FIRST SOLUTION

2 USING VB.NET TO CREATE A FIRST SOLUTION 25 2 USING VB.NET TO CREATE A FIRST SOLUTION LEARNING OBJECTIVES GETTING STARTED WITH VB.NET After reading this chapter, you will be able to: 1. Begin using Visual Studio.NET and then VB.NET. 2. Point

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

Unit-1. Components of.net Framework. 1. Introduction to.net Framework

Unit-1. Components of.net Framework. 1. Introduction to.net Framework 1 Unit-1 1. Introduction to.net Framework The.NET framework is a collection of all the tools and utilities required to execute the.net managed applications on a particular platform. The MS.NET framework

More information

The Control Properties

The Control Properties The Control Properties Figure Before writing an event procedure for the control to response to a user's input, you have to set certain properties for the control to determine its appearance and how it

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

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

Visual C# Program: Resistor Sizing Calculator

Visual C# Program: Resistor Sizing Calculator C h a p t e r 4 Visual C# Program: Resistor Sizing Calculator In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor

More 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

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

Human Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad

Human Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad Human Factors Engineering Short Course 2016 Creating User Interface Prototypes with Microsoft Visual Basic for Applications 3:55 pm 4:55 pm, Wednesday, July 27, 2016 Topic: A Simple Numeric Entry Keypad

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

Chapter 12: Using Controls

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

More information

Lecture 1 Introduction Phil Smith

Lecture 1 Introduction Phil Smith 2014-2015 Lecture 1 Introduction Phil Smith Learning Outcomes LO1 Understand the principles of object oriented programming LO2 Be able to design object oriented programming solutions LO3 Be able to implement

More 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

Aga Private Institute for computer Science

Aga Private Institute for computer Science Aga Private Institute for computer Science C# 2015 By : SHERZAD ABDULLAH 2017-2018 P a g e 0 *What is computer programming Language? Programming means designing a set of instruction to ask the computer

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

Integration and Extension Product Version: 8.0 Quick Start Guide

Integration and Extension Product Version: 8.0 Quick Start Guide Adroit SmartUI Scripting Reference Integration and Extension Product Version: 8.0 Quick Start Guide 1. Table of contents 1. Table of contents... 1 2. Overview... 1 3. Purpose of this guide... 1 4. The

More information

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,

More information

Introduction to the Visual Studio 2005

Introduction to the Visual Studio 2005 Chapter 1 Introduction to the Visual Studio 2005 1 INTRODUCTION Included in Visual Studio.NET Visual Basic (VB.Net, VB 7.0) C++ C# (đọc là CSharp) J# (J Sharp).NET Framework 2 CÀI ĐẶT Visual Studio.NET

More information

Disclaimer. Trademarks. Liability

Disclaimer. Trademarks. Liability Disclaimer II Visual Basic 2010 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft

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

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. // 1. MainForm.cs using System.Collections.Generic; using System.Drawing; LISTING PROGRAM / / Description of MainForm. / public partial class MainForm : Form public MainForm() The InitializeComponent()

More information

Additional Controls & Objects

Additional Controls & Objects Additional Controls & Objects November 8, 2006 Chapter 9 - VB 2005 by Schneider 1 General Tips & Tricks Now is the time to start thinking about the final exam Continue (start!) doing questions from the

More information

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you

More information

Chapter 13. Graphics, Animation, Sound, and Drag-and-Drop. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Chapter 13. Graphics, Animation, Sound, and Drag-and-Drop. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 13 Graphics, Animation, Sound, and Drag-and-Drop McGraw-Hill Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Objectives (1 of 2) Use Graphics methods to draw shapes, lines,

More information

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1. 練習問題 1-1 Label1 Label1.Text = Label1.Text + 2 練習問題 1-2 Button2 Label1 Label1.Text = Label1.Text+ 2 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

More information

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming Introduction to the Visual Studio.NET Integrated Development Environment IDE CSC 211 Intermediate Programming Visual Studio.NET Integrated Development Environment (IDE) The Start Page(Fig. 1) Helpful links

More information

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

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

More information

2.3 Add GDS Google Map to Visual Studio Toolbox and create a simple map project

2.3 Add GDS Google Map to Visual Studio Toolbox and create a simple map project 1. Introduction GDS Google Map is a Desktop.Net User Control, which can be embedded in Windows Forms Applications or hosted in WPF Applications. It integrates an interactive Google Map into your desktop

More information

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

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

More information

Create a memory DC for double buffering

Create a memory DC for double buffering Animation Animation is implemented as follows: Create a memory DC for double buffering Every so many milliseconds, update the image in the memory DC to reflect the motion since the last update, and then

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

Unit 3 Additional controls and Menus of Windows

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

More information

In-Class Worksheet #4

In-Class Worksheet #4 CSE 459.24 Programming in C# Richard Kidwell In-Class Worksheet #4 Creating a Windows Forms application with Data Binding You should have Visual Studio 2008 open. 1. Create a new Project either from the

More information

DateTimePicker Control

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

More information

08 NSBasic Moving Target Page = 1 = 13 October 2015

08 NSBasic Moving Target Page = 1 = 13 October 2015 08 NSBasic Moving Target Page = 1 = 13 October 2015 08 NSBasic Moving Target Download the Moving Target V3.00 NSBasic start file from your home folder. This is the file that you will start with in the

More information

Developing Desktop Apps for Ultrabook Devices in Windows* 8: Adapting Existing Apps By Paul Ferrill

Developing Desktop Apps for Ultrabook Devices in Windows* 8: Adapting Existing Apps By Paul Ferrill Developing Desktop Apps for Ultrabook Devices in Windows* 8: Adapting Existing Apps By Paul Ferrill Microsoft introduced the Extensible Application Markup Language (XAML) in conjunction with the release

More information