Page 52 - Open Soource Technologies 304.indd
P. 52
Event Driven Programming
LinkLabel1.Text = "Label"
LinkLabel1.Location = New Point(135, 70)
LinkLabel1.Size = New Size(30, 30)
Me.Controls.Add(LinkLabel1)
End Sub
Figure 3.10: The Command Button on a Form. Figure 3.11: The Command Button’s
Icon on the Toolbox.
"The MultiLine property is only writable at design time, although you can
find out its value at runtime. MultiLine is False by default, meaning that
everything in the TextBox control will appear on a single line. If MultiLine
is set to True, the TextBox will perform word-wrapping and also break a typed
line after a hard return.
3.4.4 Command Button
The Command Button is used to make an action happen e.g. process the inputs that have been
entered onto a Form and then show the output.
The naming convention for the Command Button is 'cmd'. E.g. cmdExit. Also, Command Button's
look more professional if you set the Height property to 375, unless your creating Graphical
buttons of course.
46 LOVELY PROFESSIONAL UNIVERSITY