|
The
Form design, introductory.vb
Create Visual Basic 2010 Forn -
introductory.vb
Classes used in this Form:
PictureBox, Button
-
Create the Form
introductory.vb
Add New Item -
introductory.vb Form to work_VBNet_10
Project
- On the Projet
menu , click Add New Item ...,
Add New Item - work_VBNet_10 dialog box appears, Select
Windows form Icon,
in the Name box type
introductory.vb and then click
Add.
|
 |
|
Note:
In the Windows Forms Designer appears the
design form created and in the Properties
Windows displays the corresponding properties
and
The design Form introductory.vb created, appears the empty window Form
design |
|
|
The codes file, created
... |
Public
Class
introductory
Private
Sub
introductory_Load(ByVal
sender
As
System.Object,
ByVal e
As
System.EventArgs)
Handles
MyBase.Load
End
Sub
End
Class
|
|
|
|
1. |
Picture files used by this form ...
|
|
- The folder
c:\work_VBNet_10\work_VBNet_10\pic stored the
bmp file awork.bmp
|
2. |
The
introductory.vb
design |
|
 |
The Properties of
the Form -
introductory.vb... |
Name: FormBorderStyle Menu: Size: Start
Position: Text: Window
State: |
introductory none (none) 488,344 CenterScreen
introductory
... Normal | | | |
3. |
From the Toolbox/Windows Form add these
controls .... Tree PictureBox controls, eight
Label controls and
one Button control. |
|
- Add
the PictureBox
control - Picico, PictureBox
Properties:
Name: Image: Size
Mode: |
Picico System.Drawing.Bitmap Autosize | |
Bitmap file
added = C:\work_VBNet_10\work_VBNet_10\pic\awork.bmp
- Add
the Button
control - btnDone, Button
Properties:
Name: BackColor: Size: Text: |
btnDone Scrollbar 80,24 Done | | | | |
|
introductory.vb file, the codes after modification
...
|
|
Public
Class
introductory
Inherits
System.Windows.Forms.Form
Private
Sub
btndone_Click(ByVal
sender
As
System.Object,
ByVal e
As
System.EventArgs)
Handles
btndone.Click
Me.Close()
End
Sub
Private
Sub
PictureBox1_Click(ByVal
sender
As
System.Object,
ByVal e
As
System.EventArgs)
Handles
PictureBox1.Click
Me.Close()
End
Sub
End
Class | | |
|
|