Thursday, September 18, 2008

iiiiiiiiiiiiiiiiiiiiiiiiiiittttts Friday! (September 19)

and to celebrate, let's do a little work with some pretty pictures, shall we?

The program you will create today will make use of many features we have already explored, such as a "Form Load" statement, which makes stuff happen when your form appears on the screen, an array declared outside of any control on the form, an integer variable and a button to move through the array one element at a time.

We will also make use of some new stuff, including :

A) the use of a String variable to hold a pathname, that is, something which describes where a file can be found. Here is an example of a pathname:
C:\Documents and Settings\Paul\Desktop\Meladie

B) the use of a PictureBox control, and more importantly, the "Image.FromFile()" constructor, which allows you to set the image property of a PictureBox. (In other words, we'll be able to change the picture at will.)

So OK, before we get going, please setup a folder somewhere that's convenient, and then download some pictures to it. Then I'll pass out the code sheets, and away we go!

Cheers,

Mr. L

No comments: