COMPUTER PROGRAMMING I SUMMER 2011 Objective 8.02 Apply Procedures to Create Picture Boxes using Images. (5%)

Slides:



Advertisements
Similar presentations
© by Pearson Education, Inc. All Rights Reserved. continued …
Advertisements

 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
PictureBoxes A picture box displays an image. You can find it in toolbox, drag it in the form Images can be.bmp,.gif,.jpg, jpeg GIF and JPEG files are.
Putting Your PowerPoint into WebCT. To put your PowerPoint online Create an appropriate folder Upload the PowerPoint file to that folder Create a link.
Mouse event handling Mouse events( delegates EventHandler, event arguments EventArgs) MouseEnter: raised if the mouse cursor enters the area of the control.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
PictureBox, Timer, Resources. Resources An easy and effective way to add pictures (photos, graphics) to your programs Using Resources guarantees that.
Using the File Manager WebCT 6. Understanding File Manager The File Manager is the area where all course files are stored. Whenever you link a file in.
E 3 PowerPoint Basic PP Animated PP Powered PP MENU Next Creating a Basic PowerPoint Presentation: Templates Text Graphics.
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
Controls General Discussion. VB Controls Visual Basic Controls A control is the generic name for any object placed on a form Controls may be images,
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Lesson 6: Working with Layout and Graphics
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
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.
Selecting Text Users can select text using a variety of methods: – Dragging over text with their mouse – Double-clicking over a word selects the word –
Some activities may not be enabled as part of the Kent School District network system.
IE 411/511: Visual Programming for Industrial Applications
COMPUTER PROGRAMMING I Objective 8.03 Apply Animation and Graphic Methods in a Windows Form (4%)
GRAPHICAL MEDIA 1. ScannerScanner Graphics Sources 2.
Drawing Objects…. This lesson will cover: What Can You Draw? How to … Add Graphics to your worksheet Draw and Format AutoShapes Draw and Format Text Boxes.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
 2009 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2008 IDE.
 2009 Pearson Education, Inc. All rights reserved Dive Into ® Visual C# 2008 Express.
Jozef Goetz,  2006 Pearson Education, Inc. All rights reserved.  2002 Prentice Hall. All rights reserved. expanded by J. Goetz, 2009.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
BIL528 – Bilgisayar Programlama II Introduction 1.
The PictureBox Control Prefix Prefix – pic Image Property PictureBox Image Property – Changes the image or file that appears inside of the PictureBox SizeMode.
Visual Basic.NET BASICS Lesson 3 Events and Code.
Laboratory Exercise # 9 – Inserting Graphics to Documents Office Productivity Tools 1 Laboratory Exercise # 9 Inserting Graphics to Documents Objectives:
BY PRIYA M ROBOHELP HTML. INTRODUCTION RoboHELP is a program designed to assist the user in writing help files, including Windows help files (Win HELP)
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 3.1 Test-Driving the Welcome Application 3.2.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Copyright © 2006 Prentice-Hall. All rights reserved.1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Project 4: Using Graphic Tools.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
COMPUTER PROGRAMMING I SUMMER 2011 Objective 8.01 Understand coordinate systems. (3%)
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
Slide 1 VB Graphics Controls & Timer Control. Slide 2 Default Controls.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Images Part 11 dbg. 2 Images The form and several controls can display a number of different types of image files in the BackgroundImage Property. These.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
1 Windows Forms II Chapter RadioButton / GroupBox Controls Used to solicit a multiple choice input. Radio buttons work as a group. Selecting one.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2009 Pearson Education, Inc. All rights reserved. 1 CS1120 Introduction to Windows Forms Applications Many slides modified by Prof. L. Lilien (even many.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft PowerPoint 2010 Lesson 6: Working with Layout and Graphics Created by Felicia Hudson, Riverside High School--Durham Public Schools.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
Graphical User Interface Concepts - Part 1 Session 08 Mata kuliah: M0874 – Programming II Tahun: 2010.
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
Objective 8.02 Apply Procedures to Create Picture Boxes using Images.
3.01 Apply Controls Associated With Visual Studio Form
Visual studio 2010 SENG 403, Tutorial 2 SENG Winter 2011.
Introduction to the Visual C# 2005 Express Edition IDE
Program and Graphical User Interface Design
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
Presentation transcript:

COMPUTER PROGRAMMING I SUMMER 2011 Objective 8.02 Apply Procedures to Create Picture Boxes using Images. (5%)

Objective/Essential Standard Essential Standard 8.00 Apply procedures to develop graphics applications Indicator 8.02 Apply Procedures to Create Picture Boxes Using Images. (5%)

COMPUTER PROGRAMMING 1 Adding Images

Adding Images to Your Project 1. In the Solution Explorer, double-click My Project 2. The following is displayed.

Adding Images to Your Project 3. Select the Resources tab. 4. Go to the Strings tab  click the drop-down arrow.  Select Images 5. Go to the Add Resource tab  click the drop-down arrow. 6. To add an existing image, select Add Existing. To create and add an image, select New Image, then the image type.

COMPUTER PROGRAMMING 1 The PictureBox Control

PictureBox Control The PictureBox control displays an image. The image can be one of the following formats.  Bitmap  GIF  JPEG  Best use  Enhanced Metafile  Icon

Adding A PictureBox Control Click the PictureBox control in the ToolBox. Draw the rectangular picture box on your form. Set the Properties.

PictureBox Control PictureBox PropertiesDescription (Name)The name of a PictureBox should start with pic ImageSets the image to display in the PictureBox SizeMode Normal (Default) StretchImage AutoSize CenterImage Zoom Controls the image sizing and position places in the top-left corner of the Picture Box resizes the image to fit the PictureBox resizes the PictureBox to fit the image puts the image in the middle of the PictureBox resizes the image to fit the PictureBox but maintains the original ratio PictureBox EventDescription ClickOccurs when the user clicks the PictureBox

Adding Images to the PictureBox Control Select the PictureBox Click in the Image property area  The Ellipsis displays. The Select Resource dialog displays

Adding Images to the PictureBox Control Click on Import Browse to your folder Select the Image Click Open

Adding Images to the PictureBox Control Your image will be added to the list.

Using the PictureBox You can set the Image property during runtime Me.PictureBox.Image = My.Resources.ImgName Example

Changing How the Image Displays Remember the SizeMode property of the PictureBox will change how the image is displayed. To change how the image is displayed at runtime, you can change the SizeMode property. Me.PictureBox.SizeMode = PictureBoxSizeMode.SizeModeValue  Where the SizeModeValue is one of the choices given: Normal (Default), StretchImage, AutoSize, CenterImage, Zoom

Conclusion This PowerPoint provided an overview of the PictureBox control in Visual Basic. For more information: us/library/5b4t5f7s.aspx us/library/5b4t5f7s.aspx