The easiest way to display images in Visual Basic is to use a PictureBox control. In this example, we'll use a PictureBox control to create a simple image viewer application, and we'll use an OpenFileDialog control to load an image file from disk.
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact Advertise on Bucaro TecHelp Advertise Here RSS News Feeds News Feeds


Hello World! Computer Programming for Kids and Other Beginners

Hello World! Computer Programming for Kids and Other Beginners

This book provides a gentle but thorough introduction to computer programming. It's written in language a kid can follow, but anyone who wants to learn how to program a computer can use it. Even adults.

Teaches using the powerful object-oriented but easy-to-use open source Python programming language.

Click Here

Easy Visual Basic Image Viewer

The easiest way to display images in Visual Basic is to use a PictureBox control. In this example, we'll use a PictureBox control to create a simple image viewer application. A PictureBox control acts as a container for images. You can choose the image to be displayed by setting the PictureBox control's Image property at design time, or during run time.

Typically, you'll add the image file to your project as a resource so that it's compiled into the executable file. In this example, we'll use an OpenFileDialog control to load an image file from disk. Open Visual Basic and follow the steps below to create a simple image viewer application.

1. Create the Project

Create a new project by clicking on the File menu and selecting New | Project... This opens the New Project dialog box. The Windows Application template is selected by default. Uncheck the box next to [] Create directory for solution. In the Name: test box, enter a name for your new project, for example Image Viewer. Click on the [Ok] button.

New Project dialog box

-  A "solution" is a container for several related projects that might share some of the same code modules. In this example, we don't rally need a "solution", we are creating a simple project.

Under the Projects folder (i.e. My Documents\Visual Studio 2005\Projects), Visual Basic will create an Image Viewer folder with several sub folders for the project's files; bin, My Project, and obj. Visual Basic will then display Form1 in the design area.

-  Windows in the Visual Basic development environment can either float, or can be docked. If a window starts to float, drag it by its title bar to an edge of the Visual Basic main window and double-click on its title bar. It will dock to the nearest edge. If you want a window to float and it docks, double-click on its title bar and it will float. Double-clicking a window title bar toggles it between float and dock.

Programming Sections

RSS Feed RSS Feed

Google Reader or Homepage
Add to My Yahoo!
Subscribe in NewsGator Online

Add to My AOL
Add to Technorati Favorites!

Visual Basic
Reading and Writing Files with the VBScript FileSystemObject
The Components of the Microsoft Access Database Interface
How to Design an Access Relational Database Management System (RDBMS)
How to Utilise and Apply Access Database Normalisation Techniques
Five Reasons Why You Should Consider Splitting a Microsoft Access Database
Five Common Mistakes Affecting Access Database Optimisation and Performance
The Benefits of Microsoft Access Forms to Create a User Friendlier Database
Six Important Points When Importing Data Into An Access Database
Your First Visual Basic 2010 Express Program
Programming in Visual Basic 2010: The Very Beginner's Guide
Video - Visual Basic Express 2010 - Getting Started and the First Program
Visual Basic 2010 Textbox Based Simple Edit Program
Introduction to Visual Basic 2005 Express
Visual Basic 2005 Express: Now Playing
Visual Basic 2005 Express Reserved Words or keywords
Easy Visual Basic Image Viewer
Introduction to Visual Basic
Visual Basic File Reading and Writing
Compile C# Without Visual Studio
C# Keywords
C# Predefined Primitive Data Types
Working With Variables in C#


[Site User Agreement] [Advertise on This site] [Search This Site] [Contact Form]
Copyright©2001-2011 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268