|
The Form design,
introductory.vb
Create Visual Basic .Net Forn - introductory.vb
Classes used in this
Form:
PictureBox,
Button
- On the View menu ,
click Solution Explorer
- In Solution
Explorer
In Solution
Explorer, right click the work_VBNet, select Add
on the shortcut menu to open other shortcut menu, click
Add New Item, the Add New Item - work_VBNet dialog
box appears. |
 |
- In the
Add New Item -work_VBNet dialog box:
- In the Categories
pane, select Local Project Items
- In the Templates
pane, select Windows form . A message appears -
(a form for Windows Applications).
- In the Name
box, type introductory.vb
- Click Open
|
 |
- In the windows
Forms Designer appears the empty window Form
design
|
1. |
Picture files used by this form ... |
|
- The folder
c:\work_VBNet\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\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
...
The
text
Code
is red color, the codes added manuel |
|
Public
Class
introductory
Inherits System.Windows.Forms.Form
Windows Form Designer
generated code |
Private Sub
PictureBox1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles
PictureBox1.Click
'Me.Close()
End Sub
Private Sub
btndone_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles
btndone.Click
Me.Close()
End Sub
End
Class
| | |
|
|