Homework:
Provide a brief definition of the following terms (in the interface
programming context):
- Scope
- Instantiate
- Object
- Pseudo-random
If you use a source (book or web site), cite your source. (The sites
http://whatis.techtarget.com/ and http://www.webopedia.com/ are decent
sources for technical definitions.)
The Scream
Scream.exe
- Design a form with an image in which the image grows and shrinks. The image I used is
The Scream by Edvard Munch, but you can use a different image.
- Use a timer to change the PictureBox's width and height. In order to maintain the aspect
ratio (to some extent), the image width and height of the example were multiplied by a number
such as 1.03 to grow and 1/1.03 to shrink.
- To keep the image centered the X component of the PictureBox's location was set to
half of the form's width minus half of the PictureBox's width. It is somewhat similar for
the Y component (though you may have to adjust for the Form's title bar.)
- Experiment with conditions for switching from growing to shrinking and back again.
- (In the example, the PictureBox is always larger than the form.)
Due: Oct. 11