2.6. Using Visual Programming to Create a Simple Program that Displays Text and an Image

In this section, we create a program that displays the text “Welcome to Visual Basic!” and an image of the Deitel & Associates bug mascot. The program consists of a single form that uses a Label and a PictureBox. Figure 2.27 shows the result of the program as it executes. The program and the bug image are available with this chapter’s examples. You can download the examples from www.deitel.com/books/vbforprogrammers2/index.html. Please read the Before You Begin section of the Preface to ensure that you install the examples correctly on your computer.

Figure 2.27. Simple program executing.

To create the program whose output is shown ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.