|
The Form design,
about.jsl
Create Visual J# .Net Forn - about.jsl
Classes used in this
Form: Timer,
PictureBox, Button, Label,
Textbox
- 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 about.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
files wdesn.bmp, wdesn1.bmp,
wdesn2.bmp
|
2. |
The about.jsl
design |
|
 |
The Properties of
the Form - about.jsl... |
Name: Icon: Maximize: Menu: Size: Start
Position: Text: Window
State: |
about Icon False (none) 368,332 CenterScreen about
... Normal | | | |
3. |
From the Toolbox/Windows Form add these
controls .... 3 PictureBox
controls, 12 Label controls, 5
TextBox controls, 1 Panel control, 1
Timer contol and 2 Button
controls. |
|
- Add the PictureBox
control - Picico, PictureBox
Properties:
Name: Image: Size
Mode: |
Picico System.Drawing.Bitmap Autosize | |
Bitmap file
added = C:\work_VJnet\pic\wdesn.bmp
- Add the PictureBox
control - Picicoorg0 Properties:
Name: Image: Size
Mode: |
Picicoorg0 System.Drawing.Bitmap Autosize | |
Bitmap file
added = C:\work_VJnet\pic\wdesn1.bmp
- Add the PictureBox
control - Picicoorg1,
PictureBox Properties:
Name: Image: Size
Mode: |
Picicoorg1 System.Drawing.Bitmap Autosize | |
Bitmap file
added = C:\work_VJnet\pic\wdesn2.bmp
- Add the Label
control
- Label1, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label1 Microsoft Sans Serif,
8.25pt 232,16 Visual J# .net
application TopLeft | |
- Add the Label
control
- Label2, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label2 Microsoft Sans Serif,
8.25pt 232,16 Created by Chucri
Simon
Zouein. TopLeft | |
- Add the Label
control
- Label3, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label3 Microsoft Sans Serif,
8.25pt 232,16 Tel:
961-
01-691436. TopLeft | |
- Add the Label
control
- Label4, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label4 Microsoft Sans Serif,
8.25pt 232,16 Web:
www.puresoftwarecode.com
TopLeft | |
- Add the Label
control
- Label5, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label5 Microsoft Sans Serif,
8.25pt 232,16 E-mail:
info@puresoftwarecode.com TopLeft | |
- Add the Label
control
- Label6, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label6 Microsoft Sans Serif,
8.25pt 232,16 Beirut, Lebanon. All right
reserved ...
TopLeft | |
- Add the Button
control - btnDone, Button
Properties
Name: BackColor: Size: Text: |
btnDone Silver 80,24 Done | |
- Add the Button
control - btndetail, Button
Properties
Name: BackColor: Size: Text: |
btndetail Silver 80,24 detail | |
- Add the Label
control
- Line1, Label
Properties
Name: Font: Size: Text: TextAlign: |
Label Microsoft Sans Serif,
8.25pt 256,2
TopLeft | |
- Add the Panel
control
- Panel1, Panel
Properties:
- Add the Label
control
- Label7, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label7 Microsoft Sans Serif,
8.25pt 130,16 computer
nane TopLeft | |
- Add the TextBox
control
- TextBox1,
TextBox Properties
Name: Font: Size: Text: |
TextBox1 Microsoft Sans Serif,
8.25pt 200,20 | |
- Add the Label
control
- Label8, Label
Properties
Name: Font: Size: Text: TextAlign: |
Label8 Microsoft Sans Serif,
8.25pt 130,16 registered
owner TopLeft | |
- Add the TextBox
control
- TextBox2,
TextBox Properties
Name: Font: Size: Text: |
TextBox2 Microsoft Sans Serif,
8.25pt 200,20 | |
- Add the Label
control
- Label9, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label9 Microsoft Sans Serif,
8.25pt 130,16 operating system
nane TopLeft | |
- Add the TextBox
control
- TextBox3,
TextBox Properties:
Name: Font: Size: Text: |
TextBox3 Microsoft Sans Serif,
8.25pt 200,20 | |
- Add the Label
control
- Label10, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label10 Microsoft Sans Serif,
8.25pt 130,16 operating system
version TopLeft | |
- Add the TextBox
control
- TextBox4,
TextBox Properties:
Name: Font: Size: Text: |
TextBox4 Microsoft Sans Serif,
8.25pt 200,20 | |
- Add the Label
control
- Label11, Label
Properties:
Name: Font: Size: Text: TextAlign: |
Label11 Microsoft Sans Serif,
8.25pt 130,16 windows root
folder TopLeft | |
- Add the TextBox
control
- TextBox5,
TextBox Properties:
Name: Font: Size: Text: |
TextBox5 Microsoft Sans Serif,
8.25pt 200,20 | | | | |
|
about.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 about.
*/
public
class
about extends
System.Windows.Forms.Form
{
System.Windows.Forms.Label Label1;
public
System.Windows.Forms.Label Line1;
System.Windows.Forms.Panel Panel1;
System.Windows.Forms.Label Label11;
System.Windows.Forms.Label Label10;
System.Windows.Forms.Label Label9;
System.Windows.Forms.Label Label8;
System.Windows.Forms.Label Label3;
System.Windows.Forms.TextBox TextBox5;
System.Windows.Forms.TextBox TextBox4;
System.Windows.Forms.TextBox TextBox3;
System.Windows.Forms.TextBox TextBox2;
System.Windows.Forms.TextBox TextBox1;
System.Windows.Forms.Button Btndetail;
System.Windows.Forms.Timer Timer1;
System.Windows.Forms.Label Label5;
System.Windows.Forms.Button btnDone;
System.Windows.Forms.Label Label4;
System.Windows.Forms.PictureBox picicoOrg1;
System.Windows.Forms.PictureBox picico;
System.Windows.Forms.Label Label7;
System.Windows.Forms.PictureBox picicoOrg0;
System.Windows.Forms.Label label6;
System.Windows.Forms.Label Label2;
private
System.ComponentModel.IContainer components;
// variable
int
IcoNmbr = 0;
public
about()
{
//
// 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
about_Load (Object sender, System.EventArgs e)
{
this.set_Height(this.btnDone.get_Top() + (this.btnDone.get_Height()
* 9 / 4));
this.Btndetail.set_Text("detail");
this.TextBox1.set_Text(System.Convert.ToString(System.Environment.get_MachineName()));
this.TextBox2.set_Text(System.Convert.ToString(System.Environment.get_UserName()));
this.TextBox3.set_Text(System.Convert.ToString(System.Environment.get_OSVersion()));
this.TextBox4.set_Text(System.Convert.ToString(System.Environment.get_Version()));
this.TextBox5.set_Text(System.Convert.ToString(System.Environment.get_SystemDirectory()));
}
private void
Btndetail_Click (Object sender, System.EventArgs e)
{
if (this.Btndetail.get_Text().Equals("detail"))
{
this.set_Height(this.Panel1.get_Top() +
this.Panel1.get_Height() + this.btnDone.get_Height());
this.Btndetail.set_Text("hide");
}
else if (this.Btndetail.get_Text().Equals("hide"))
{
this.set_Height(this.btnDone.get_Top() + (this.btnDone.get_Height()
* 9 / 4));
this.Btndetail.set_Text("detail");
}
}
private void
btnDone_Click (Object sender, System.EventArgs e)
{
this.Close();
}
private void
Timer1_Tick (Object sender, System.EventArgs e)
{
if
(IcoNmbr == 0)
{
this.picico.set_Image(this.picicoOrg0.get_Image());
IcoNmbr = 1;
}
else
{
this.picico.set_Image(this.picicoOrg1.get_Image());
IcoNmbr = 0;
}
}
}
| | |
|
|