Section 3.2


[Page 621 (continued)]

In a VB2005 event procedure header line, the event(s) is specified following the Handles keyword. The default procedure name for the event can be altered.

In VB2005, controls do not have default properties. For instance, the VB6 statement txtBox = "Hello, World" must be replaced with txtBox.Text = "Hello, World".

In VB2005, the form object is referred to inside the form's code as Me, not Form1. For instance, the phrase in the form's title bar is specified with a statement such as Me.Text = "New Caption".


[Page 622]

The events LostFocus and GotFocus can still be used in VB2005. However, the preferred names for these events are Leave and Enter.

The DblClick event procedure of VB6 is called DoubleClick in VB2005.

In VB2005, font properties can be altered during run time; however, not with statements such as txtBox.Font.Bold = True.

In VB2005, all of the code required for creating a form is contained in the file formName.Designer.vb. Whenever the form is modified with the Form Designer, those changes are reflected by changes to the code in this file.




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