|
The Form design,
introductory.jsl
Create Visual J# .Net Forn - introductory.jsl
Classes used in this
Form:
PictureBox, Button
- On the View menu ,
click Solution Explorer
- In Solution
Explorer
In Solution Explorer, right click the
work_VJnet, select Add on the shortcut menu to
open other shortcut menu, click Add New Item,
the Add New Item - work_VJnet dialog box
appears. |

|
- In the Add New
Item -work_VJnet 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.jsl
- Click
Open
|

|
- In the windows
Forms Designer appears the empty window Form
design
|
1. |
Picture files used by this form ...
|
|
- The folder
c:\work_VJnet\pic stored the bmp file
awork.bmp
|
2. |
The
introductory.jsl design |
|
 |
The Properties of
the Form - introductory.jsl... |
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_VJnet\pic\awork.bmp
- Add the Button
control - btnDone, Button
Properties:
Name: BackColor: Size: Text: |
btnDone Scrollbar 80,24 Done | | | | |
|
introductory.jsl file, the codes after modification
...
The
text
Code is
red
color, the codes added
manuel |
|
package
work_VJnet;
import System.Drawing.*;
import System.Collections.*;
import System.ComponentModel.*;
import System.Windows.Forms.*;
/**
* Summary description for introductory.
*/
public
class
introductory
extends System.Windows.Forms.Form
{
System.Windows.Forms.Button btndone;
System.Windows.Forms.PictureBox PictureBox1;
/**
* Required designer variable.
*/
private
System.ComponentModel.Container components =
null;
public
introductory()
{
//
// Required for
Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add
any constructor code after InitializeComponent call
//
}
/**
* Clean up any resources being used.
*/
protected
void
Dispose(boolean
disposing)
{
if
(disposing)
{
if
(components !=
null)
{
components.Dispose();
}
}
super.Dispose(disposing);
}
Windows Form Designer
generated code |
private void
PictureBox1_Click (Object sender, System.EventArgs e)
{
this.Close();
}
private void
btndone_Click (Object sender, System.EventArgs e)
{
this.Close();
}
}
| | |
|
|