Section 9.2


[Page 624 (continued)]

For the check box and radio button controls, the Value property of VB6 has been replaced in VB2005 with the Checked property.

The Frame control of VB6 has been replaced in VB2005 by the GroupBox control.

VB2005 does not have a Line, Shape, or Image control. As alternatives, VB2005's Label control can be used to draw lines and rectangular shapes, and VB2005's PictureBox control has most of the capabilities of VB6's Image control.


[Page 625]

For the picture box control, the Picture property of VB6 has been replaced in VB2005 by the Image property.

In VB2005, the picture box control has a StretchImage property that is analogous to the Stretch property for the image control in VB6.

With VB2005, a Timer is turned off with the statement Timer1.Enabled = False instead of with the statement Timer1.Interval = 0.

The Max and Min properties for scrollbars of VB6 have been changed to Maximum and Minimum. The default value for Maximum is 100. (The Max property had a default value of 32,767.) In VB6, Min could be set to a value greater than Max; in VB2005, this is not allowed.

In VB2005, the unit of measure for graphics is pixels. (Twips was the unit in VB6.)

The graphics Scale method of VB6 is not supported in VB2005.

For the timer control, the Timer event of VB6 has been replaced with the Tick event in VB2005.

In VB2005, the Timer control is not visible on the form in the Form Designer.




An Introduction to Programming Using Visual Basic 2005
Introduction to Programming Using Visual Basic 2005, An (6th Edition)
ISBN: 0130306541
EAN: 2147483647
Year: 2006
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net