|
|
|
|
|
The Microsoft
Visual Basic .Net member of the Microsoft Visual Studio .Net |
|
Window Explorer Net application ..., describe how to use Microsoft Visual Basic .Net to
show detail information about you PC, drives, folders
and files
The Classes
used in this application
System.IO, Microsoft.VisualBasic, Button, ContextMenu, DriveListbox, DirListbox, FileListBox, ImageList, Label, ListBox, ListView,
MainMenu, Panel,
PictureBox, StatuaBar, Timer, ToolBar, TreeView,
TextBox,
- Name -
Window Explorer Net
- Data
Software.
- Developed with
Microsoft Visual Basic .Net.
- Functions ,,,
- To
show information about any drives, folders
and files of your PC
-
To copy and paste any folders or files.
|
- Requirements:
Microsoft Visual Studio .Net.
If you want to run it:
- Remove the
read-only attribute of all files in the
folder - C:\Window
Explorer Net
- Run the
Microsoft Visual Studio .Net.
- From
File menu, choose Open,
choose Project ..., the
Open Project dialog box appears,
select the project file Window
Explorer Net.vbproj -
(C:\Window
Explorer Net\Window
Explorer Net..vbproj)
and then click Open.
- From
Debug menu, choose and click
Start.
|
Project
- Window
Explorer Net and those items
|
1. |
Create new
Visual Basic .Net project
Run
Microsoft Visual Studio .Net. On the
File menu , click New, and then click Project
.... The New Project dialog box appears.
- In the Project
Types pane, select the Visual Basic Projects
folder.
- In the Templates
pane, select Windows Application icon (project
type). A message appears indicating the type of project you
are going to create - (A project for creating an application
with a Windows user interface).
- In the Name
box, type
Window Explorer Net.
- In the
Location box, type
C:\
- Click
OK.
The
Windows Application create all necessary files and
opens the Visual Basic .Net project -
Window Explorer Net.
Rename
Form - Form1.vb
- On the View
menu , click Solution Explorer
- In Solution
Explorer, expand the
Window Explorer Net project node and select
Form1.vb
- In Properties
windows, Type the new File Name = MainForm
|
2. |
Module1.vb
Create Module
On the
View menu , click Solution
Explorer
In
Solution Explorer, right click the
Window
Explorer Net., select Add on the
shortcut menu to open other shortcut menu,
click Add New Item, the Add New
Item -
Window
Explorer Net.dialog box
appears.
In
the Add New Item -Window
Explorer Net. dialog box:
In the
Categories pane, select Local Project
Items
In the
Templates pane, select Module icon .
In the
Name box, type
Module1.vb
Click
Open, in the Solution Explorer
display new item - Module1.vb
The
Module1.vb code stores information about all public variables
used in this application.
Set new Startup object - Sub Main
- On the
Project menu , click
Window
Explorer Net.Properties
..., the
Window
Explorer Net. Property Pages
dialog box appears
- In the
Startup object combo box, choose
and select Sub Main
- Click
OK
The
Codes ...
|
|
After running, you can observe the design
.. |
1. |
The
View design |
|
|
2. |
This Form
includes the following
controls:
One Button
control, two contextMenu controls, one DriveListbox
control, two DirListbox
control, one FileListBox control,
six ImageList
controls, two Label
controls, two ListBox control,
one ListView control,
one MainMenu control, two Panel
controls, one StatusBar control, one TextBox control,
one Timer control,
tree
ToolBar control,
one TreeView control.
The Functions
...
Test if drive
not ready
Show
information about ready drive
Show
information about folder or file
(Properties)
To copy and paste
any folders or files
|
3. |
The
Codes ... |
| |
|
1. |
Not_Ready_Form.vb |
|
This Form displays, when you select any not ready
drive and click the button - Prop. of the Form MainForm.vb,
This Form includes the
following controls:
Two
Label controls, one Button
control.
|
|
|
2. |
Drive_Properities.vb |
|
This Form displays, when you select any ready drive and click the
button - Prop. of the Form MainForm.vb.
This Form includes the
following controls:
One PictureBox control,
fifteen
Label controls, one Button
control, two TextBox controls and one ImageList
control.
|
|
|
3. |
Folder_File_Properties.vb |
|
This Form displays, when you select any Folder or File and click
the button - Prop. of the Form MainForm.vb.
This Form includes the
following controls:
One PictureBox control,
fourteen
Label controls, one Button
control and one ImageList
control.
|
|
|
|
|
This Form displays, when you
select the Button About of the Form MainForm.vb
|
|
|
This Form includes the
following controls:
Tree PictureBox control, seven
Label controls, one Button
control and one Timer
control.
Click the Button Done, the
current Form
unload | | |
|
|