Objective 8.02 Apply Procedures to Create Picture Boxes using Images.

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.
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.
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.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
IE 411/511: Visual Programming for Industrial Applications
GRAPHICAL MEDIA 1. ScannerScanner Graphics Sources 2.
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.
A Power Point Tutorial Inserting Clip Art, Pictures and other Content Clip art, pictures, videos, tables and other content are important in a Power Point.
© 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
COMPUTER PROGRAMMING I SUMMER 2011 Objective 8.02 Apply Procedures to Create Picture Boxes using Images. (5%)
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Glogster: Create Virtual Posters Created by Russell Smith, Technology Facilitator, North Edgecombe High School.
Creating a Power Point Presentation Open Microsoft Power Point Create a new presentation using a blank presentation. Choose an Auto Layout Select the sample.
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.
If you don’t have Google Earth downloaded already, you can go to to get it.
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.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
 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.
PictureBox, MessageBox, Multiple Forms, Splash Screens and Timers
Visual Studio 2010 Hello World CSC 230.
Display Ratios The Student Union displays have ratios of 16:9
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
3.01 Apply Controls Associated With Visual Studio Form
Computer Programming I
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
Creating Applications with Visual Basic
Chapter 2 – Introduction to the Visual Studio .NET IDE
Lesson 04 Control Structures I : Decision Making
Lesson 6: Working with Layout and Graphics
Working with Symbols and Interactivity
Objectives Plan and create a presentation Apply a different theme
Creating Online Presentations
Presentation transcript:

Objective 8.02 Apply Procedures to Create Picture Boxes using Images. Computer Programming I

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%)

Adding Images Computer programming 1

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

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

The PictureBox Control Computer programming 1

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 Properties Description (Name) The name of a PictureBox should start with pic Image Sets 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 Event Description Click Occurs 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: http://msdn.microsoft.com/en-us/library/5b4t5f7s.aspx