Page 73 - Open Soource Technologies 304.indd
P. 73
Unit 3: Understanding Controls and Control Events
Localizable Determines if localizable code will be generated for this object
Window Style Properties Description
ControlBox Gets/Sets a value indicating if a control box is displayed
HelpButton Determines whether a form has a help button on the caption bar
Icon Gets/Sets the icon for the form
IsMdiContainer Gets/Sets a value indicating if the form is a container for MDI
child forms
MaximizeBox Gets/Sets a value indicating if the maximize button is displayed
in the caption bar of the form
Menu Gets/Sets the MainMenu that is displayed in the form
MinimizeBox Gets/Sets a value indicating if the maximize button is displayed
in the caption bar of the form
Opacity Determines how opaque or transparent the form is
ShowInTaskbar Gets/Sets a value indicating if the form is displayed in the
Windows taskbar
SizeGripStyle Determines when the size grip will be displayed for the form
TopMost Gets/Sets a value indicating if the form should be displayed as
the topmost form of the application
Transparencykey A color which will appear transparent when painted on the form
3.6 Form Load Event
The default event of a form is the load event which looks like this in code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)_
Handles MyBase.Load
End Sub
You can write code in the load event of the form just like you write for all other controls.
You can run the Form by selecting Debug->Start from the main menu or by pressing
F5 on the keyboard. When you run a blank form with no controls on it, nothing is
displayed. It looks like the image below.
LOVELY PROFESSIONAL UNIVERSITY 67