Vous êtes sur la page 1sur 81

1.

INTRODUCTION
1

ABOUT THE SYSTEM


The SECURE E DOC SYSTEM is a data storage based project based on the total
documentation management system of the company. This project includes many
features compare to other system. Features includes Plug-in interfacing makes it
a Hi-tech tool for intranet browsing because the user who has enough
programming skills can program their own plug-ins, and it can be easily
attached to the browser. Advanced Data Capturing and data downloading
attachments are added to this project were the company can easily mange the
data warehouse easily. By downloading the documents the whole data can be
added to the library this which includes all digital files like pictures or videos.
File Organizer is the other module where the authorities can easily send all the
files to the required users and can maintained in a proper order. File transfer is
possible with in the intranet system. Digital Documentation is a program where
capture of all the vital discussion, statements, and promises are captured. With
this the company can easily assure the right decision. Book marking is another
feature available in this project. This feature is also included in this project. It is
very easy to pickup a site from the bookmark menu. This aspect reduces the
typing effort of user and speeds up the manual input. Detailed help files are
includes with the package and the users can access it from the package and the
users can access it from the project window itself.

ABOUT THE ORGANIZATION


Organization name: Primary Co-operative Agricultural and Rural Development
Bank, palakkad.
The palakkad Primary Co-operative Agricultural and Rural Development Bank
Ltd.No.F.1029 has registered on 30/06/1938 with the area of operation of
palakkad Thaluk of palakkad district with head quarters at palakkad. The bank
started its function on 10/08/1938.There are 3 NES block in the area of operation.
The bank has full fledged branch/branches at Nil and a sub-office at Kongad and
Kanjikode. At present there are 11500 members, out of which 7000 are borrowing
members.
As per the bye-law provisions, the bank borrow funds from KSCARDB for the
purpose of lending to its members under normal,scheme,none-farm,rural housing,
gold loan and traders loan schemes etc.The borrowing outstanding of the
PCARDB during 2005-06 and 2006-07 is Rs.2793.62 and Rs.2733.85
respectively,registering a decrease of Rs.59.77 compared to the previous year.
During the year 2006-07, the bank could issue loans to the tone of Rs.707.03
lakhs against the target of Rs.638.00 lakhs showing increase of Rs.301.51 over the
previous year 2005-06.
The Recovery position of the bank during 2006-07 is 58.62%,against the target of
60%,the poor recovery position of the Bank were due to many reasons.
The bank made an invest of Rs.134.41 lakhs during 2006- 07 against the target of
Rs.130.00 lakhs, registering and increase/decrease of 7.03% over the previous
year 2005-06.
The present plan propose to attain the sustainable viability of this bank through
out the plan period (2007-08 to 2011-2012)for which required the support and

guidance from higher level such as KSCARDB state Govt,NABARD etc are
expected.
The bank made an invest of Rs.134.41 lakhs during 2006-07 against the target of
Rs.130.00 lakhs, registering and increase/decrease of 7.03% over the previous
year 2005-06.
The present plan propose to attain the sustainable viability of this bank through
out the plan period (2007-08 to 2011-2012)for which required the support and
guidance from higher level such as KSCARDB state Govt,NABARD etc are
expected.

2. SYSTEM STUDY
2.1 EXISTING SYSTEM
The existing system is the manual system.

The manual system there is lots of

difficulties faced by the organization. They have to kept lot of staff for these
efforts and also to keep a large set of files to solve this problem we thus proposed
a computerization of the system.

Information collecting manually is so slower

compare to Computerization. As the company needs information quickly so that


they can take decision immediately and can provide their customers better
service support. Most of all anybody can control this with a little computer
knowledge.
After problem is clearly understood and solutions are proposed the next step is
to conduct the feasibility study, which is the part of system analysis. The main
objective of this study is to determine whether the proposed system is feasible or
not.
2.2 PROPOSED SYSTEM
After the implementation of this software, the company becomes fully
computerized one. The product has been developed for coordinating the
maintenance management of the Software

installed in various customer sites.

Software management is a very complex activity. This involves deputing the right
person for the right job. The maintenance work is a continuous activity. Hence a
proper record keeping is essential for better management. This can be easily done
by computerization.
The project has been developed for coordinating the maintenance management
of the Software installed in various customer sites. Maintenance work is a

continuous activity. Hence a proper record keeping is essential for better


management. The quality of work is another important aspects of this job. We
can achieve a good quality of work by computerizing the whole activity. This
can be easily done by computerization.
This package has been developed in the platform Windows XP Server as the
operating system and VB.Net as Front End and SQL-Server 7.0 as Back End.
SALIENT FEATURES OF THE SYSTEM
The proposed software has the following essential features:

The software is developed in VB.Net and was tested for its successful
working

Files, Documents, Book Mark, Video Files , Audio files c an be processed,


sequentially, randomly or dynamically.

All types of files can be stored and retrieve

The software maintains different levels of security like Login, Password


and Designation.

The system uses VB.Net as the front-end tool for user interaction.

The system provides security for using the data.

2.3 SYSTEM CONFIGURATION


HARDWARE REQUIREMENT
Processor Capacity

Pentium IV, Celeron or AMD

CPU Clock

3GHz and above

Computer Hard Disk

40 GB

System Memory

512 MB

Cache Memory

512MB

Monitor

15 inch

Web camera

Creative

Keyboard

Standard 106 key

Mouse

Index, IBM USB Mouse, Digital mouse

SOFTWARE REQUIREMENT
The software components that are used in a system include both the operating
system and the programming software that I had used.
Operating system

Windows XP

Programming software

Microsoft Visual Basic .NET-2005

Backend Software

MS SQL Server 7.0

2.4 SOFTWARE SELECTION


ABOUT VISUAL STUDIO.NET
Visual Studio .NET is a complete set of development tools for building ASP Web
applications, XML Web services, desktop applications, and mobile applications.
Visual Basic .NET, Visual C++ .NET, and Visual C# .NET all use the same
integrated development environment (IDE), which allows them to share tools
and facilitates in the creation of mixed-language solutions. The .NET Framework
is a multi-language environment for building, deploying, and running XML Web
services and applications. It consists of three main parts:
Common Language Runtime
Despite its name, the runtime actually has a role in both a component's runtime
and development time experiences. While the component is running, the
runtime is responsible for managing memory allocation, starting up and
stopping threads and processes, and enforcing security policy, as well as
satisfying any dependencies that the component might have on other
components.
.NET Framework Advantages

Consistent Programming Model

Direct Support for Security

Simplified Development Efforts

Easy Application Deployment and Maintenance

VISUAL BASIC.NET
Visual Studio .NET is the tool for rapidly building enterprise-scale ASP Web
applications and high performance desktop applications. Visual Studio includes
component-based development tools, such as Visual C#, Visual Basic, and Visual
C++, as well as a number of additional technologies to simplify team-based
design, development, and deployment of your solutions.
ABOUT STRUCTURED QUERY LANGUAGE (SQL)
To work with data in a database, you must use a set of commands and statements
(language) defined by the DBMS software. There are several different languages
that can be used with the relational databases; the most common in SQL
Standards for SQL have been defined by both the American National Standards
Institute (ANSI) and the International Standards Organization (ISO).
Features of SQL Server
SQL Server includes a set of administrative and development tools that
improve your ability to install, deploy, manage and use SQL Server across
several sites.
The same database engine can be used across platforms ranging from
laptop

computers

running Microsoft Windows

95/98 to large,

multiprocessor servers running.


Microsoft Windows NT, Enterprise Edition.
SQL Server includes tools for extracting and analyzing summary data for
online analytical processing (OLAP).SQL Server also includes tools for

visually designing databases and analyzing data using English-based


questions.
System integration with other server software.
SQL Server integrates with e-mail, the internet and windows.

3. SYSTEM DESIGN AND DEVELOPMENT


1

INPUT DESIGN
In the input design, the input data are entered into the database through

forms.

The users interaction with the system is through forms. The input data flows on
the DFD are translated to input modules and data couples in the structure chart;
these data couples are the inputs that feed the data stores in the system. Each
input form is associated with a data flow entering a process on a DFD.
Automating input (e.g., via barcode scanning) reduces the chance of human error
during data input. Direct system-to-system links improves throughput and
reduces errors caused by data reentry, but increases the importance of controls
because an internal system has been opened up to a trading partner.

The

objectives in input design are :

Accuracy
In theoretical computer science, Accuracy is implemented in codlings asserted
when it is said that the Codes is correct with respect to a specification. Functional
correctness refers to the input-output behavior of the project i.e., for each input
it produces the correct output
Effectiveness
In computer science, Efficiency is used to describe several desirable properties of
an algorithm or other construct, besides clean design, functionality, etc. Efficiency

is generally contained in two properties: speed, (the time it takes for an operation
to complete), and space, (the memory or non-volatile storage used up by the
construct). Optimization is the process of making code as efficient as possible,
sometimes focusing on space at the cost of speed, or vice versa.

Ease to use
How easy something is to use. Both software and Projects can be tested for
usability. Considering how difficult applications are to use and to navigate, one
would wish that more designers took this seriously

Consistency
Consistency consists of the probability that a component part, equipment, or
system

will

satisfactorily

perform

its

intended

function

under

given

circumstances, such as environmental conditions, limitations as to operating


time, and frequency and thoroughness of maintenance for a specified period of
time.

Attractiveness
The Attractiveness refers to the Main Form designing, Module Designing of an
initial or new and upgraded project off a computer software product. Each time a
software program or system is changed, the programmers and company doing
the work will decide on how to Change or alter the design the forms or changes
to that program or system.

OUTPUT DESIGN
One of the most important features of an information system for users is the
output it produces. They are the only contact between users and data processing
system. The output may be given and printed report or it can be displayed in the
screen.

The output from a system should accomplish one or more of the following
objectives

Convey information about past, present, future activities.

Signal important events.

Trigger an action.

Conform an action.

The output may be

A report.

A document.

A message.

DATABASE DESIGN
The activity deals with the design of the physical database. A key is to determine
how the access paths are to be implemented. A physical path is derived from a
logical path. Pointers, chains or other mechanisms may implement. The general
theme behind database is to handle information as a whole.. The general
objective is to make information access easy, quick, inexpensive and flexible for
the user. Database design is the most critical part of the design phase.. Database
design transforms the information domain model created during the analysis
into the data structures that will be required to implement the software system.

Database design is the most critical part of the design phase. An elegantly
designed, well-defined database can play as a strong foundation for the whole
system.

Database design transforms the information domain model created

during the analysis into the data structures that will be required to implement
the software system Output from computer system is required primarily to
communicate the results of processing to users. The objects of output design are
to interpret and communicate the results of the computer part of the system to
user in a form, which they can understand and which meets their requirement

and to communicate the output design specification to the programmers in a


way , which is unambiguous, comprehensive and capable of being translated in
a programming language.

The project generates various reports from each

module

TABLES
CUSTOMER DETAILS
Primary Key : CustId
FIELD NAME
CustId
Name
gender
Address
company
Designation
phone
Email

DATATYPE
int
char
char
varchar
char
char
numeric
varchar

DESCRIPTION
Customer id
Customer name
gender
Address
company
Designation
phone
Email

DOCUMENTATION
Primary Key : DocID
Foreign Key: CapID

FIELD NAME
DocID

DATATYPE
Decimal

CapID
Department

Decimal
Varchar

DESCRIPTION
DocumeentationI
D
CaptureID
Department

Categry
Titile
Sourse
Date
Time
Type
FileItem

Varchar
Varchar
Varchar
Datetime
Datetime
Varchar
Varchar

Categry
Titile
Sourse
Date
Time
Type
FileItem

DOCUMENT CAPTURE
Primary Key : CapId

FIELD NAME
CapId
Department
Date
Time
DocType
FileName

DATATYPE
Numeric
Char
Datetime
Datetime
Char
Varchar

DESCRIPTION
Capture id
Department
Date
Time
Document Type
File Name

DATATYPE
Decimal
Decimal
Varchar
Varchar
Char
Varchar
Datetime

DESCRIPTION
PreserationID
Document id
Category
Title
Department
File
Date

LONG
Primary Key :
Foreign Key :

FIELD NAME
PrID
id
cat
title
dept
Fileloc
date

tranTO
hid
name
comment

Varchar
Char
Char
Varchar

Transfer toTo
Staff id
Staff name
Comments

DATATYPE
Decimal
Decimal
Char
Char
Char
Varchar
Datetime
Varchar
Decimal
Char
Varchar

DESCRIPTION
PreserationID
Document id
Category
Title
Department
File
Date
Transfer toTo
Staff id
Staff name
Comments

SHORT
Primary Key :
Foreign Key
FIELD NAME
PrID
id
cat
title
Dept
FileLoc
Date
tranTo
Hid
Name
comments
STAFF
Primary Key : staffid
FIELD NAME
staffid
stfname
stfdesig

DATATYPE
decimal
char
char

DESCRIPTION
Staff id
staffname
Staff designation

Stfjd
Stfsex
stfadd
stfdept
stfphone
stfmail

datetime
char
varchar
char
decimal
varchar

Staff join date


Sex
Address
Department
phone
Mail Id

DATATYPE
varchar

DESCRIPTION
url name

DATATYPE
varchar
Varchar

DESCRIPTION
User Name
Password

BROWSER
FIELD NAME
urlname

Login
FIELD NAME
usrName
surpass

Data Flow Diagram

Level-0

User

Secure E Doc System


Input

output

Manger

Level-1 User
Capturing records from
selected sources

Capture

Overall management
of staffs and customers records

Manage
Store the documents which is being proceeded
Store

Preserving the records after the requirement

Preserve

Manager

Level-2

User

Capturing records from


selected sources
Capture

Overall management
of staff and customer
records
Manage
Customer
details

Document details

Report

Store the documents


which is being proceeded

Store
Store

Preserving the records


after the requirement

Preserve for
long term

Report

Long term

Long term

Report

Preserve

Preserve for
Short term

Short term

Manager

SYSTEM FLOW DIAGRAM

Short tem

Report

Storing

Capturing

Code Design

Code design is designs especially to mentioning codes. This Designs are


applicable to

object-modeling techniques to analyze the requirements for a

Module for example, a Project , a set of project modules and to design a


solution. Most modern object-oriented analysis and design methodologies are
use case driven across requirements, design, implementation, testing, and
deployment. To ensure a complete code design, we tried some of the following in
a suitable sequence: Put in the pseudo code.
By doing so, the designer is actually trying to implement the design.
During this process, shortcomings in the design from the coding point of view
could be realized. Even programming bits like class fields, properties, constants,
enumerators, helper/private functions to do some specific tasks all could be
identified while doing the pseudo code. In fact, during coding stage the
developer would mostly write language specific code to implement the pseudo
code.
This means we now have a two stage design process. First, do a high level
design to implement the general architecture. So design patterns, identifying
domain entities, relationship between domain entities and all the normal design
work is done first. Then an experienced developer would take the design further
by trying to implement the pseudo code for it. This can be considered as a kind
of unit testing.

Create a traceability matrix


Map each requirement/specific rules to our design classes/methods. This

will help ensure that most issues have been considered in the design. It will also
help identify what was left out. Create flow charts and map each node in the
chart to your design elements. Again this could be a two stage process. First, the
high level business related flow charts are created and the high level design
(abstract classes or interfaces) is mapped to it. Then the lower level flow charts
are created and specific concrete classes/methods are mapped to it. This can be
thought of as a kind of integration testing. Documentation is a cumbersome
process but it does clear lot of confusion
When writing the code for them. So every class, variable, property,
method and event's existence/usage is explained so that the coder knows exactly
what to do with it. In these way even developers new to the project could get
going without having to know in detail the business process and project specific
nuances involved.

4. SYSTEM IMPLEMENTATION
The main aim implementing the project Secure E Doc System is to see
whether the output created and inputs given are according to the users
requirements and specifications. The project has implemented with the help of
the users and others staffs. The regular proceedings of user training have made
the implementation work very easy.
The implementation
First the company installed the software and Hardware requirement.

The

successful implementation of the new system depends upon an involvement of


staff working in the department.

The different stage of implementation of Natural medicine system

Testing the developed program with sample data.

Detection & correction of errors.

Testing whether the system meets user requirements.

Creating files of the system with the actual data.

Making necessary changes are desired by the user.

Training user personnel.

5. SYSTEM TESTING
UNIT TESTING
Unit testing focuses on verification efforts on the smallest unit of software
design i.e., the module. The unit testing is always white box oriented and the step
can be conducted in parallel for modules. The module interface is tested to
ensure that information properly flows in and out of the program unit under test.
The local data structures are examined to ensure that data stored temporarily
maintains its integrity during all steps in an algorithm execution. Boundary
Conditions are tested to ensure that the module operates properly at boundaries
established to limit or restrict processing. All independent paths through the
control structures are exercised to ensure that all statement in a module have
been executed at least once. Finally all Error-Handling are tested.

REQUIREMENT TESTING
The main aim of this test plan is to see whether the outputs created and
inputs were given according to the user requirements and specifications that have
been established. This was done in the security department by having the
developer as a secondary person and another employee who conducted the
actual test. Some Suggestion was made while requirement testing was done that
has been incorporated.

USER TESTING
During the testing the tester places the role of the individual who desires
to penetrate the system. The tester may attempt to acquire passwords through
external clerical means and may attack the system with the custom software

design to break down any defenses that have been constructed. The tester may
also overwhelm the system thereby denying service to other s and may
purposely cause system errors to penetrate during recovery and may browse
through insecure data, hoping to find key to system entry.

VALIDATION TESTING
At the end of user testing, software is completely assembled as a package,
interfacing errors have now being uncovered and correcting test begins. Software
testing and validation are achieved through a serious black box tests that
demonstrate conformity with the requirement.
A plan outlines the classes of tests to be conducted and test procedure
defines specific cases that will be used to demonstrate conformity with
requirements. Both the plan and the procedure are designed to ensure that all
functional requirements are achieved, documentation is correct and other
requirements are met. After the validation test, one of the conditions exists. They
are, the function or performance characteristics confirm to specification and are
accepted. A deviation from the specification is uncovered and a deficiency list is
created. The deviation or error discovered at this stage in a project can rarely be
corrected prior to scheduled completion. It is necessary to negotiate with the
customer to establish methods.

USER ACCEPTANCE TESTING


Acceptance testing involves planning and execution of functional tests,
performance test, and stress tests to verify that the implemented system satisfies
its requirements. Acceptance tests are typically performed by quality assurance
and/or customer organizations.

Functional and performance tests are performed to determine the


limitations of the system. Typically, acceptance typically, acceptance test will
incorporate test cases developed during unit testing and integration testing.
Additional test cases are added to achieve desired level of functional,
performance, and stress testing of the entire system. Tools of Special importance
during acceptance testing include a test Coverage analyzer, a timing analyzer,
and a coding standards checker. A test coverage analyzer records the control
paths followed for each test case. Timing analyzer reports the time spent in
various regions of the source code and different test cases.

6. CONCLUSION AND FURTHER SCOPE


CONCLUSION
The Digital Content Management System has been uploaded on the
company. It is analyzed and tested and found to be working successfully in a user
friendly interface. The requirements of the organization has fulfilled to a great
extend by this project.
Future extension or modification in the systems is possible if required. The
proposed system minimizes the human error ratio and the job load. Since the
data are kept in the database, one can retrieve it for any number of times. The
problems that were faced by the old system have been completely overcome by
the new system. Manual entries are more time consuming than making the
entries through the keyboard. Wastage of stationery and labor

time can be

eliminated. The manual method is more prone to errors and this has been
overcome by the new system.
Thus the new system has made the related activities of the organization
easy and efficient with best performance. The system can be changed easily
depending on changes in the organization.

FUTURE ENHANCEMENT
In the future can add more module in it, Can even change the tools used
according to the user requirements. For making more attractive can even include
type of graphic design. By using this can add this module to know about the
present ongoing Project. Even can add Internet technologies.

This package has been developed almost for all kinds of company.
Therefore, it may have almost all sections that are wanted by the company. If the
management wants to implement more features with this software then they can
include easily. In future online discussion and reports through e-mail can also be
implemented. Therefore, this software can be available through Internet also.

7 BIBILIOGRAPHY
Autor
MAT TELLES

Book
VISUAL BASIC.NET 2005 BLACK
BOOK,2005 Edition.
Dream Tech Publications Pvt Ltd

STEPHEN MANDEL

VISUAL

BASIC.NET

PLATFORM,

AND

MacGrawhill,

.NET
Second

Edition, 2002
ELIAS. M.AWAD

SYSTEM

ANALYSIS

&

DESIGN,

Galgotia Publication Pvt Ltd., Second


Edition, 1999.
ULLIMAN

PRINCIPLES OF DATABASE SYSTEM,


MacGrawhill,

Third

Edition,

1999.

Galgotia Publication Pvt Ltd., Second


Edition, 1999.
KORTH & SILBERSCHATZ

DATABASE
MacGrawhill,

SYSTEM
Fifth

CONCEPT,
Edition,

2001.

Galgotia Publication Pvt Ltd., Second


Edition, 1999.

Web site

www.microsoft.com
www.clusty.com

8 APPENDICES
1

Sample Screen

Sample Report

Extracted Source Code

MDI FROM
Imports System.Windows.Forms
Public Class DigitalContentManagementFrm
Dim CstDt As New CustomerDetailsFrm
Dim DcmFrm As New DocumentFrm
Dim Cpt As New CapturingFrm
Dim LngTrm As New PreservationDetails
Dim StfDet As New StaffDetails
Dim dialogbox As New Connect_frm_dll
Public RemoteHost As String
Private Sub CmdCapturing_click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles CmdDocument.Click
Me.Controls.Add(DcmFrm)
Panel1.Hide()
DcmFrm.Show()
CstDt.Hide()
Cpt.Hide()
LngTrm.Hide()
StfDet.Hide()
frmWebBrwsr.Close()
End Sub
Private Sub DigitalContentManagementFrm_Click(ByVal sender As
Object, ByVal e As System.EventArgs) Handles Me.Click
End Sub
Private Sub DigitalContentManagementFrm_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Me.Load
PictureBox1.SetBounds(0, 0, 1024, 120)
Panel1.SetBounds(150, 120, 900, 800)
DATATRANSFERToolStripMenuItem.Enabled = False
End Sub
Private Sub cmdCustomerDetails_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmdCustomerDetails.Click
Me.Controls.Add(CstDt)
Panel1.Hide()
CstDt.Show()
DcmFrm.Hide()
Cpt.Hide()
LngTrm.Hide()

StfDet.Hide()
frmWebBrwsr.Close()
End Sub
Private Sub cmbBrowser_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmbBrowser.Click
Panel1.Hide()
CstDt.Hide()
DcmFrm.Hide()
Cpt.Hide()
LngTrm.Hide()
StfDet.Hide()
frmWebBrwsr.Show()
End Sub
Private Sub CapturingToolStripMenuItem1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Me.Controls.Add(Cpt)
Panel1.Hide()
DcmFrm.Hide()
CstDt.Hide()
Cpt.Show()
LngTrm.Hide()
StfDet.Hide()
frmWebBrwsr.Close()
End Sub
Private Sub BrowserToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Panel1.Hide()
CstDt.Hide()
DcmFrm.Hide()
Cpt.Hide()
LngTrm.Hide()
StfDet.Hide()
frmWebBrwsr.Show()
End Sub
Private Sub CustomerDetailsToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Me.Controls.Add(CstDt)
Panel1.Hide()
CstDt.Show()
DcmFrm.Hide()
Cpt.Hide()
LngTrm.Hide()
StfDet.Hide()
frmWebBrwsr.Close()
End Sub
Private Sub cmdCapturing_Click_1(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Me.Controls.Add(Cpt)
Panel1.Hide()
DcmFrm.Hide()
CstDt.Hide()

Cpt.Show()
LngTrm.Hide()
StfDet.Hide()
frmWebBrwsr.Close()
End Sub
Private Sub StoringToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Me.Controls.Add(DcmFrm)
Panel1.Hide()
DcmFrm.Show()
CstDt.Hide()
Cpt.Hide()
frmWebBrwsr.Close()
LngTrm.Hide()
StfDet.Hide()
End Sub
Private Sub cmdLongTrem_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdLongTrem.Click
Me.Controls.Add(LngTrm)
LngTrm.Show()
Panel1.Hide()
DcmFrm.Hide()
CstDt.Hide()
Cpt.Hide()
frmWebBrwsr.Close()
StfDet.Hide()
End Sub
Private Sub cmdStaffDetails_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmdStaffDetails.Click
Me.Controls.Add(StfDet)
LngTrm.Hide()
Panel1.Hide()
DcmFrm.Hide()
CstDt.Hide()
Cpt.Hide()
frmWebBrwsr.Close()
StfDet.Show()
End Sub
Private Sub cmdReport_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdReport.Click
Form2.Show()
End Sub
Private Sub webcam_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles webcam.Click
Dim vid_cap As New frm_Cap
Me.Controls.Add(vid_cap)
LngTrm.Hide()
Panel1.Hide()
DcmFrm.Hide()
CstDt.Hide()
Cpt.Hide()
frmWebBrwsr.Close()

StfDet.Hide()
vid_cap.Show()
End Sub
Private Sub CONNECTToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
CONNECTToolStripMenuItem.Click
If dialogbox.ShowDialog = Windows.Forms.DialogResult.OK Then
RemoteHost =
Connect_frm_dll.lst_wrk_grp_systems.FocusedItem.Text
End If
If RemoteHost = "" Then
Else
P1.Value = 0
Label5.Text = 0
Tmr_connect_client.Enabled = True
End If
End Sub
Private Sub Tmr_connect_client_Tick(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Tmr_connect_client.Tick
If P1.Value = 100 Then
P1.Value = 0
Label5.Text = 0
Tmr_connect_client.Enabled = False
On Error GoTo ConnectError
sck_Identifier.RemoteHost = RemoteHost
sck_Identifier.RemotePort = 8000
sck_Identifier.Connect()
GroupBox1.Visible = False
MsgBox("Connected")
DATATRANSFERToolStripMenuItem.Enabled = True
Exit Sub
ConnectError:
sck_Identifier.Close()
Else
P1.Value = P1.Value + 1
Label5.Text = Label5.Text + 1
End If
End Sub

Private Sub DATATRANSFERToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
DATATRANSFERToolStripMenuItem.Click
Sharing_Frm_dll.Show()
End Sub
Private Sub Splitter1_SplitterMoved(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.SplitterEventArgs) Handles
Splitter1.SplitterMoved
End Sub

End Class

Document Details
Public Class DocumentFrm
Dim con As OleDb.OleDbConnection
Dim sqlcmd As New SqlCommands
Dim ins, updt, del As Boolean
Dim datardr As OleDb.OleDbDataReader
Dim DcmntType As String
Dim DcmntLctn As String
Dim Strlen As Integer
Dim Str As Array
Private Sub CapturingFrm_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
Me.SetBounds(142, 120, 900, 800)
CmdShow.Visible = False
con = sqlcmd.estrablishconnection
End Sub
Private Sub CmdShow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CmdShow.Click
Dim pro As New Process
pro.StartInfo.FileName = DcmntLctn
pro.StartInfo.Verb = "open"
pro.StartInfo.CreateNoWindow = False
pro.Start()
End Sub
Private Sub cmdloc_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdloc.Click
CmdShow.Visible = True
datardr = sqlcmd.ExecuteDataReader("select * from
Documentation")
While datardr.Read
DcmntID_capturing.Items.Add(datardr.Item(0))
End While
End Sub
Private Sub cmdnew_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdnew.Click
CmdShow.Visible = False
Dim dr As OleDb.OleDbDataReader
Dim I As Integer
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
Dim stf As OleDb.OleDbCommand = New OleDb.OleDbCommand("select
max(staffid) from Staff", con)
dr = stf.ExecuteReader
Try
While Not IsDBNull(dr.Read)

DcmntID_capturing.Text = dr.Item(0) + 1
I = 0
End While
Catch
If I = 1 Then
DcmntID_capturing.Text = 1
End If
End Try
'DcmntID_capturing.Text = ""
CapId.Text = ""
Department.Text = ""
DcmntCategry_Capturing.Text = ""
DcmntTitile_Capturing.Text = ""
DcmntSourse_Capturing.Text = ""
txtLocation.Text = ""
End Sub
Private Sub cmdins_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdins.Click
If OptVideo.Checked = True Then
DcmntType = "Video"
ElseIf OptAudio.Checked = True Then
DcmntType = "Audio"
ElseIf optDocument.Checked = True Then
DcmntType = "Document"
ElseIf optHTML.Checked = True Then
DcmntType = "HTML"
ElseIf optImage.Checked = True Then
DcmntType = "Image"
End If
ins = sqlcmd.ExecuteNonQuery("insert into Documentation
values('" & DcmntID_capturing.Text & "','" & CapId.Text & "','" &
Department.Text & "','" & DcmntCategry_Capturing.Text & "','" &
DcmntTitile_Capturing.Text & "','" & DcmntSourse_Capturing.Text & "','"
& DcmntDate_Capturing.Text & "','" & DcmntTime_Capturing.Value & "','" &
DcmntType & "','" & txtLocation.Text & "')")
MsgBox("Inserted")
End Sub
Private Sub cmdExit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdExit.Click
Me.Hide()
DigitalContentManagementFrm.Panel1.Show()
End Sub
Private Sub cmdupd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdupd.Click
Dim str_sql As String
str_sql = "UPDATE Documentation SET CapID ='" & CapId.Text & "',
Department ='" & Department.Text & "', Categry ='" &
DcmntCategry_Capturing.Text & "', Title ='" & DcmntTitile_Capturing.Text
& "', Source ='" & DcmntSourse_Capturing.Text & "', Date ='" &
DcmntDate_Capturing.Text & "', "

str_sql = str_sql & " Time ='" & DcmntTime_Capturing.Text & "',
Type ='" & DcmntType & "', FileItem ='" & txtLocation.Text & "' where
DocID='" & DcmntID_capturing.Text & "'"
sqlcmd.ExecuteNonQuery(str_sql)
MsgBox("updated")
End Sub
Private Sub cmddelete_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmddelete.Click
Dim str_sql As String
str_sql = "delete from Documentation where DocID='" &
DcmntID_capturing.Text & "'"
sqlcmd.ExecuteNonQuery(str_sql)
MsgBox("Deleted")
End Sub
Private Sub DcmntID_capturing_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DcmntID_capturing.SelectedIndexChanged
datardr = sqlcmd.ExecuteDataReader("select * from Documentation
where DocID='" & DcmntID_capturing.Text & "'")
While datardr.Read
CapId.Text = datardr.Item(1)
Department.Text = datardr.Item(2)
DcmntCategry_Capturing.Text = datardr.Item(3)
DcmntTitile_Capturing.Text = datardr.Item(4)
DcmntSourse_Capturing.Text = datardr.Item(5)
DcmntDate_Capturing.Text = datardr.Item(6)
DcmntTime_Capturing.Text = datardr.Item(7)
If datardr.Item(8) = "Video" Then
OptVideo.Checked = True
ElseIf datardr.Item(8) = "Audio" Then
OptAudio.Checked = True
ElseIf datardr.Item(8) = "Document" Then
optDocument.Checked = True
ElseIf datardr.Item(8) = "HTML" Then
optHTML.Checked = True
ElseIf datardr.Item(8) = "Image" Then
optImage.Checked = True
End If
DcmntLctn = datardr.Item(9)
Str = Split(DcmntLctn, "\")
Strlen = Str.Length - 1
txtLocation.Text = Str(Strlen)
End While
End Sub
Private Sub cmdslct_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdslct.Click
OpenFileDialog1.InitialDirectory = Application.StartupPath
OpenFileDialog1.ShowDialog()
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
txtLocation.Text = OpenFileDialog1.FileName
CmdShow.Visible = True
End If
End Sub

End Class

Customer Details
Public Class CustomerDetailsFrm
Dim cn As New SqlCommands
Dim dr As OleDb.OleDbDataReader
Private Sub CustomerDetails_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Me.SetBounds(142, 120, 900, 800)
cn.estrablishconnection()
End Sub
Private Sub cmdex_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdex.Click
Me.Hide()
DigitalContentManagementFrm.Panel1.Show()
End Sub
Private Sub cmdins_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdins.Click
cn.ExecuteNonQuery("insert into CustomerDetails values('" &
cboid.Text & "','" & txtname.Text & "','" & cbogend.Text & "','" &
txtadd.Text & "','" & txtcmp.Text & "','" & txtdesi.Text & "', '" &
txtphone.Text & "','" & txtmail.Text & "')")
If cboid.Text = "" Or txtname.Text = "" Or cbogend.Text = "" Or
txtadd.Text = "" Or txtcmp.Text = "" Or txtdesi.Text = "" Or
txtmail.Text = "" Or txtphone.Text = "" Then
MsgBox("All Fields are not filled", MsgBoxStyle.Exclamation,
"Null Check")
Else
MsgBox("Inserted")
End If
clear()
End Sub
Private Sub cmdloc_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdloc.Click
clear()
cboid.Items.Clear()
dr = cn.ExecuteDataReader("select * from CustomerDetails")
While dr.Read
cboid.Items.Add(dr.Item(0))
End While
End Sub
Private Sub cboid_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cboid.SelectedIndexChanged
dr = cn.ExecuteDataReader("select * from CustomerDetails where
CustID='" & cboid.Text & "'")

If dr.Read Then
txtname.Text = dr.Item(1)
cbogend.Text = dr.Item(2)
txtadd.Text = dr.Item(3)
txtcmp.Text = dr.Item(4)
txtdesi.Text = dr.Item(5)
txtphone.Text = dr.Item(6)
txtmail.Text = dr.Item(7)
End If
End Sub
Private Sub cmdupd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdupd.Click
cn.ExecuteNonQuery("UPDATE CustomerDetails SET Name ='" &
txtname.Text & "', gender ='" & cbogend.Text & "', Address ='" &
txtadd.Text & "', company ='" & txtcmp.Text & "', Designation ='" &
txtdesi.Text & "', phone ='" & txtphone.Text & "', Email = '" &
txtmail.Text & "' where CustId='" & cboid.Text & "'")
If cboid.Text = "" Or txtname.Text = "" Or cbogend.Text = "" Or
txtadd.Text = "" Or txtcmp.Text = "" Or txtdesi.Text = "" Or
txtmail.Text = "" Or txtphone.Text = "" Then
MsgBox("All Fields are not filled", MsgBoxStyle.Exclamation,
"Null Check")
Else
MsgBox("Updated")
End If
clear()
End Sub
Private Sub cmddel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmddel.Click
cn.ExecuteNonQuery("delete from CustomerDetails where CustId='"
& cboid.Text & "'")
MsgBox("Deleted")
clear()
cboid.Items.Clear()
End Sub
Public Sub clear()
cboid.Text = ""
txtname.Text = ""
cbogend.Text = ""
txtadd.Text = ""
txtcmp.Text = ""
txtdesi.Text = ""
txtphone.Text = ""
txtmail.Text = ""
End Sub
End Class

Preservation Details
Public Class PreservationDetails
Dim cn As New SqlCommands
Dim dr As OleDb.OleDbDataReader

Public Sub clear()


prvID.Text = ""
cboid.Text = ""
cbocat.Text = ""
txttitle.Text = ""
cbodept.Text = ""
txtto.Text = ""
cbohid.Text = ""
txtname.Text = ""
txtcom.Text = ""
End Sub
Private Sub cmdins_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdins.Click
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
If cboid.Text = "" Or cbocat.Text = "" Or txttitle.Text = "" Or
cbodept.Text = "" Or txtLocation.Text = "" Or dtpdate.Text = "" Or
txtto.Text = "" Or cbohid.Text = "" Or txtname.Text = "" Or txtcom.Text
= "" Then
MsgBox("All Fields are not filled", MsgBoxStyle.Exclamation,
"Null Check")
ElseIf optLong.Checked = True Then
cn.ExecuteNonQuery("insert into Long values('" & prvID.Text
& "', '" & cboid.Text & "','" & cbocat.Text & "','" & txttitle.Text &
"','" & cbodept.Text & "','" & txtLocation.Text & "','" & dtpdate.Value
& "','" & txtto.Text & "','" & cbohid.Text & "','" & txtname.Text &
"','" & txtcom.Text & "')")
MsgBox("inserted")
ElseIf optShort.Checked = True Then
cn.ExecuteNonQuery("insert into Short values('" & prvID.Text
& "','" & cboid.Text & "','" & cbocat.Text & "','" & txttitle.Text &
"','" & cbodept.Text & "','" & txtLocation.Text & "','" & dtpdate.Value
& "','" & txtto.Text & "','" & cbohid.Text & "','" & txtname.Text &
"','" & txtcom.Text & "')")
MsgBox("inserted")
End If
clear()
End Sub
Private Sub cmdloc_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdloc.Click
If optLong.Checked = True Then
prvID.Items.Clear()
dr = cn.ExecuteDataReader("select * from Long")
While dr.Read
prvID.Items.Add(dr.Item(0))
End While
ElseIf optShort.Checked = True Then
prvID.Items.Clear()
dr = cn.ExecuteDataReader("select * from Short")
While dr.Read
prvID.Items.Add(dr.Item(0))
End While
End If

End Sub
Private Sub cboid_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cboid.SelectedIndexChanged
Dim str_sql As String
str_sql = "select * from Documentation where DocID='" &
cboid.Text & "'"
Dim dr As OleDb.OleDbDataReader
dr = cn.ExecuteDataReader(str_sql)
If dr.Read Then
cbocat.Text = dr.Item(3)
txttitle.Text = dr.Item(4)
cbodept.Text = dr.Item(2)
txtLocation.Text = dr.Item(9)
End If
End Sub
Private Sub cmded_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmded.Click
If optLong.Checked = True Then
cn.ExecuteNonQuery("update Long set id='" & cboid.Text &
"',cat='" & cbocat.Text & "',title='" & txttitle.Text & "',dept='" &
cbodept.Text & "',date='" & dtpdate.Value & "',tto='" & txtto.Text &
"',hid='" & cbohid.Text & "',name='" & txtname.Text & "',comment='" &
txtcom.Text & "' where PrID='" & prvID.Text & "'")
ElseIf optShort.Checked = True Then
cn.ExecuteNonQuery("update Short set id='" & cboid.Text &
"',cat='" & cbocat.Text & "',title='" & txttitle.Text & "',dept='" &
cbodept.Text & "',date='" & dtpdate.Value & "',tranTO='" & txtto.Text &
"',hid='" & cbohid.Text & "',name='" & txtname.Text & "',comments='" &
txtcom.Text & "' where PrID='" & prvID.Text & "'")
End If
MsgBox("Updated")
If cboid.Text = "" Or cbocat.Text = "" Or txttitle.Text = "" Or
cbodept.Text = "" Or txtLocation.Text = "" Or dtpdate.Text = "" Or
txtto.Text = "" Or cbohid.Text = "" Or txtname.Text = "" Or txtcom.Text
= "" Then
MsgBox("All Fields are not filled", MsgBoxStyle.Exclamation,
"Null Check")
End If
End Sub
Private Sub cmddel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmddel.Click
If optLong.Checked = True Then
cn.ExecuteNonQuery("delete from Long where PrID='" &
prvID.Text & "'")
ElseIf optShort.Checked = True Then
cn.ExecuteNonQuery("delete from Short where PrID='" &
prvID.Text & "'")
End If
MsgBox("Deleted")
End Sub

Private Sub cbohid_SelectedIndexChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
cbohid.SelectedIndexChanged
dr = cn.ExecuteDataReader("select * from Staff where staffid='"
& cbohid.Text & "'")
Do While dr.Read
txtname.Text = dr.Item("stfname")
Loop
dr.Close()
End Sub
Private Sub LongTermStorage_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Dim dr As OleDb.OleDbDataReader
Me.SetBounds(142, 120, 900, 800)
cn.estrablishconnection()
dr = cn.ExecuteDataReader("select * from Documentation")
While dr.Read
cboid.Items.Add(dr.Item(0))
End While
dr = cn.ExecuteDataReader("select * from staff")
While dr.Read
cbohid.Items.Add(dr.Item(0))
End While
End Sub
Private Sub prvID_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
prvID.SelectedIndexChanged
If optLong.Checked = True Then
dr = cn.ExecuteDataReader("select * from Long where PrID='"
& prvID.Text & "'")
Do While dr.Read
cboid.Text = dr.Item(1)
cbocat.Text = dr.Item("cat")
txttitle.Text = dr.Item("title")
cbodept.Text = dr.Item("dept")
txtLocation.Text = dr.Item("Fileloc")
dtpdate.Value = dr.Item("date")
txtto.Text = dr.Item("tranTO")
cbohid.Text = dr.Item("hid")
txtname.Text = dr.Item("name")
txtcom.Text = dr.Item("comment")
Loop
ElseIf optShort.Checked = True Then
dr = cn.ExecuteDataReader("select * from Short where PrID='"
& prvID.Text & "'")
Do While dr.Read
cboid.Text = dr.Item(1)
cbocat.Text = dr.Item("cat")
txttitle.Text = dr.Item("title")
cbodept.Text = dr.Item("dept")
txtLocation.Text = dr.Item("Fileloc")
dtpdate.Value = dr.Item("date")
txtto.Text = dr.Item("tranTO")
cbohid.Text = dr.Item("hid")

txtname.Text = dr.Item("name")
txtcom.Text = dr.Item("comments")
Loop
End If
End Sub
Private Sub cmdnew_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdnew.Click
Dim dr As OleDb.OleDbDataReader
Dim I As Integer
If optLong.Checked = True Then
Dim con As New
OleDb.OleDbConnection("Provider=SQLOLEDB.1;User ID=sa;Initial
Catalog=DigitalContentManagement")
con.Open()
Dim stf As OleDb.OleDbCommand = New
OleDb.OleDbCommand("select max(PrID) from Long", con)
dr = stf.ExecuteReader
Try
While Not IsDBNull(dr.Read)
prvID.Text = dr.Item(0) + 1
I = 0
End While
Catch
If I = 1 Then
prvID.Text = 1
End If
End Try
ElseIf optShort.Checked = True Then
Dim con As New
OleDb.OleDbConnection("Provider=SQLOLEDB.1;User ID=sa;Initial
Catalog=DigitalContentManagement")
con.Open()
Dim stf As OleDb.OleDbCommand = New
OleDb.OleDbCommand("select max(PrID) from Short", con)
dr = stf.ExecuteReader
Try
While Not IsDBNull(dr.Read)
prvID.Text = dr.Item(0) + 1
I = 0
End While
Catch
If I = 1 Then
prvID.Text = 1
End If
End Try
End If
End Sub
Private Sub cmdex_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdex.Click
Me.Hide()
DigitalContentManagementFrm.Show()
End Sub
End Class

Staff details
Public Class StaffDetails
Private Sub clear()
cboid.Text = ""
txtname.Text = ""
txtdesig.Text = ""
dtpjd.Text = ""
cbogend.Text = ""
txtadd.Text = ""
txtphone.Text = ""
txtmail.Text = ""
End Sub
Private Sub cmdupd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdupd.Click
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
GroupBox1.Enabled = True
If cboid.Text = "" Or txtname.Text = "" Or txtdesig.Text = "" Or
cbogend.Text = "" Or txtadd.Text = "" Or txtphone.Text = "" Or
txtmail.Text = "" Then
MsgBox("All Fields are not filled", MsgBoxStyle.Exclamation,
"Null Check")
Else
Dim stf As OleDb.OleDbCommand = New
OleDb.OleDbCommand("insert into Staff values('" & cboid.Text & "','" &
txtname.Text & "','" & txtdesig.Text & "','" & dtpjd.Value & "','" &
cbogend.Text & "','" & txtadd.Text & "','" & cbodept.Text & "','" &
txtphone.Text & "','" & txtmail.Text & "')", con)
stf.ExecuteNonQuery()
MsgBox(" Record Inserted.", MsgBoxStyle.Information,
"Insertion")
clear()
End If
End Sub
Private Sub cmdloc_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdloc.Click
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
Dim dr As OleDb.OleDbDataReader
Dim stf As OleDb.OleDbCommand = New OleDb.OleDbCommand("select *
from Staff", con)
dr = stf.ExecuteReader
cboid.Items.Clear()
cboid.Text = ""
Do While dr.Read

cboid.Items.Add(dr.Item("staffid"))
Loop
dr.Close()
GroupBox1.Enabled = True
End Sub
Private Sub cmded_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmded.Click
Dim st As String
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
If cboid.Text = "" Or txtname.Text = "" Or txtdesig.Text = "" Or
cbogend.Text = "" Or txtadd.Text = "" Or txtphone.Text = "" Or
txtmail.Text = "" Then
MsgBox("All Fields Are Not Filled", MsgBoxStyle.Exclamation,
"Modification Incomplete")
Else
st = MsgBox("Do You Want to modify the record ? ",
MsgBoxStyle.YesNo + MsgBoxStyle.Question, "Modification")
If st = vbYes Then
Dim stf As OleDb.OleDbCommand = New
OleDb.OleDbCommand("update Staff set stfname='" & txtname.Text &
"',stfdesig='" & txtdesig.Text & "',stfjd='" & dtpjd.Value &
"',stfsex='" & cbogend.Text & "',stfadd='" & txtadd.Text &
"',stfphone='" & txtphone.Text & "',stfmail='" & txtmail.Text & "' where
staffid='" & cboid.Text & "'", con)
stf.ExecuteNonQuery()
MsgBox("Record Modified", MsgBoxStyle.Information,
"Modification")
clear()
cboid.Items.Clear()
End If
End If
clear()
End Sub
Private Sub cmddel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmddel.Click
Dim tmp As Integer
Dim ans
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
If cboid.Text = "" Or txtname.Text = "" Or txtdesig.Text = "" Or
cbogend.Text = "" Or txtadd.Text = "" Or txtphone.Text = "" Or
txtmail.Text = "" Then
MsgBox("Please locate the record to be deleted",
MsgBoxStyle.Exclamation, "Deletion Incomplete")
Else
ans = MsgBox("Do You Want to delete the record ? ",
MsgBoxStyle.YesNo + MsgBoxStyle.Question, "Deletion")
If ans = vbYes Then

Dim dist As OleDb.OleDbCommand = New


OleDb.OleDbCommand("delete from Staff where staffid='" & cboid.Text &
"'", con)
tmp = dist.ExecuteNonQuery()
MsgBox("Record Deleted", MsgBoxStyle.Information,
"Deleted")
End If
clear()
End If
cmdloc.Text = "LOCATE"
cmddel.Enabled = False
cmded.Enabled = False
clear()
End Sub
Private Sub cboid_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles cboid.SelectedIndexChanged
Dim dr As OleDb.OleDbDataReader
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()
If cboid.Text = "" Then
MsgBox("Please Select an Id")
cboid.Focus()
Else
Dim dist As OleDb.OleDbCommand = New
OleDb.OleDbCommand("select * from Staff where staffid='" & cboid.Text &
"'", con)
dr = dist.ExecuteReader
Do While dr.Read
txtname.Text = dr.Item("stfname")
txtdesig.Text = dr.Item("stfdesig")
dtpjd.Value = dr.Item("stfjd")
cbogend.Text = dr.Item("stfsex")
txtadd.Text = dr.Item("stfadd")
cbodept.Text = dr.Item("stfdept")
txtmail.Text = dr.Item("stfmail")
txtphone.Text = dr.Item("stfphone")
Loop
dr.Close()
End If
End Sub
Private Sub StaffDetails_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
Me.SetBounds(142, 120, 900, 800)
End Sub
Private Sub CMDNEW_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CMDNEW.Click
Dim dr As OleDb.OleDbDataReader
Dim I As Integer
Dim con As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;User
ID=sa;Initial Catalog=DigitalContentManagement")
con.Open()

Dim stf As OleDb.OleDbCommand = New OleDb.OleDbCommand("select


max(staffid) from Staff", con)
dr = stf.ExecuteReader
Try
While Not IsDBNull(dr.Read)
cboid.Text = dr.Item(0) + 1
i = 0
End While
Catch
If i = 1 Then
cboid.Text = 1
End If
End Try
dr.Close()
End Sub
Private Sub cmdex_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdex.Click
Me.Hide()
DigitalContentManagementFrm.Show()
End Sub
End Class

Browser
Imports System.Threading
Public Class frmWebBrwsr
Dim sqlcmd As New SqlCommands
Dim datardr As OleDb.OleDbDataReader
Dim con As OleDb.OleDbConnection
Dim ins, del As Boolean
Private AllowPopups As Boolean = True
Private NewFromMenu As Boolean = False
Public CurUrl As String
Dim s As String
Private Sub MenuItem30_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem30.Click
NewFromMenu = True
Wb1.Navigate(CurUrl, "New")
End Sub
Private Sub MenuItem62_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem62.Click
Me.OpenNewWindow()
End Sub
Private Sub OpenNewWindow()
Dim t As New Thread(AddressOf RunNewWindow)
t.Start()
End Sub
Private Sub RunNewWindow()
Application.Run(New frmWebBrwsr)

End Sub
Private Sub MenuItem15_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem15.Click
cdlOpen.Filter = "HTML Files (*.htm)|*.htm|HTML Files (*.html)|
*.html|TextFiles" & _
"(*.txt)|*.txt|Gif Files (*.gif)|*.gif|JPEG Files (*.jpg)|
*.jpeg|" & _
"PNG Files (*.png)|*.png|Art Files (*.art)|*.art|AU Fles
(*.au)|*.au|" & _
"AIFF Files (*.aif|*.aiff|XBM Files (*.xbm)|*.xbm|All Files
(*.*)|*.*"
cdlOpen.Title = "DOT NET SURFER - Open File"
cdlOpen.ShowDialog()
If cdlOpen.FileName > Nothing Then
WB.Navigate(cdlOpen.FileName)
End If
End Sub
Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles
ToolBar1.ButtonClick
Select Case e.Button.Tag
Case "Back"
Wb1.GoBack()
ToolBar1.Buttons(1).Enabled = True
Case "Forward"
Wb1.GoForward()
Case "Stop"
Wb1.Stop()
pBar.Visible = False
PicGlobe.Visible = False
Case "Refresh"
Wb1.Refresh()
Case "Home"
Wb1.GoHome()
Case "Popup"
If e.Button.Pushed = True Then
e.Button.ImageIndex = 1
ElseIf e.Button.Pushed = False Then
e.Button.ImageIndex = 2
End If
AllowPopups = Not e.Button.Pushed
Case "Search"
Wb1.GoSearch()
Case "tbHistory"
Dim HistoryPath As String =
System.Environment.GetFolderPath(Environment.SpecialFolder.History)
Process.Start(HistoryPath)
End Select
End Sub
Private Sub MenuItem92_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem92.Click

s = "http://yahoo.com"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem93_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem93.Click
s = "http://google.com"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem94_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem94.Click
s = "http://hotmail.com"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem95_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem95.Click
s = "http://rediffmail.com"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem96_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem96.Click
s = "http://google.com"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem97_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem97.Click
s = "http://guide-p.infoseek.com/Titles?qt="
Wb1.Navigate(s)
End Sub
Private Sub MenuItem98_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem98.Click
s = "http://www.excite.com/search.gw?searchType=Concept&search="
& "&category=default&mode=relevance&showqbe=1&display=html3,hb"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem99_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem99.Click
s = "http://www.lycos.com/cgi-bin/pursuit?query="
Wb1.Navigate(s)
End Sub
Private Sub MenuItem100_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem100.Click
s = "http://www.altavista.digital.com/cgi-bin/query?
pg=q&what=web&q="
Wb1.Navigate(s)
End Sub
Private Sub MenuItem101_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem101.Click
s = "http://www.alltheweb.com/cgi-bin/search?type=all&query=" &
"&exec=FAST+Search"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem102_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem102.Click
s = "http://www.audiogalaxy.com/search.php3?MP3Name="

Wb1.Navigate(s)
End Sub
Private Sub MenuItem103_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem103.Click
s = "http://www.audiofind.com:70/?
audiofindsize=0&audiofindsearch="
Wb1.Navigate(s)
End Sub
Private Sub MenuItem108_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem108.Click
s = "http://www.emedicine.com/cgibin/foxweb.exe/searchengine@/em/searchengine?query=" +
"&book=anes&book=derm&book=emerg&book=med&book=neuro&book=oph&book=ortho
ped&book=ent&book=ped&book=pmr&book=plastic&book=radio&book=sports&maxhi
ts=40&sortorder=hits"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem109_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem109.Click
s = "http://www.aafp.org/htdigsearch/htsearch?
config=&exclude=&words=" &
"&restrict=&method=and&format=long&sort=score&search_algorithm=exact
%3A1+prefix%3A0.6+synonyms%3A0.5+endings%3A0.1"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem110_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem110.Click
s = "http://www.mdchoice.com/pt/index.asp?
DoSearch=1&bLogSearchTerm=1&vcondition=" + "&vclass=0"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem111_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem111.Click
s =
"http://rsnaindex.rsnajnls.org/collsearchcgi/subjectfind.cgi?
COLLECTION_ID=" + "&sendit=Search"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem112_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem112.Click
s = "http://astalavista1.box.sk/cgi-bin/robot?srch=" &
"&submit=+search+&project=robot&gfx=robot"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem113_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem113.Click
s = "http://www.crackfind.com/"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem114_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem114.Click
s = "http://www.crackcrawler.net/cgi/search.php4"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem115_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem115.Click
s = "http://www.a1vbcode.com/"

Wb1.Navigate(s)
End Sub
Private Sub MenuItem116_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem116.Click
s = "http://www.msdn.com/"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem117_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem117.Click
s = "http://www.planetsourcecode.com/"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem118_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem118.Click
s = "http://www.wikipedia.org//"
Wb1.Navigate(s)
End Sub
Private Sub MenuItem14_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem14.Click
Shell("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0",
5)
End Sub
Private Sub MenuItem23_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem23.Click
End Sub
Private Sub frmWebBrwsr_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
con = sqlcmd.estrablishconnection
Me.SetBounds(160, 140, 900, 900)
datardr = sqlcmd.ExecuteDataReader("select * from Browser")
While datardr.Read
NavigateUrl.Items.Add(datardr.Item(0))
End While
End Sub
Private Sub ToolBar2_ButtonClick(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles
ToolBar2.ButtonClick
Select Case e.Button.Tag
Case "Go"
ins = sqlcmd.ExecuteNonQuery("insert into Browser values
('" & Trim(NavigateUrl.Text) & "')")
Wb1.Navigate(NavigateUrl.Text)
Case "search"
Wb1.Navigate("http://www.google.com/search?hl=en&ie=UTF8&oe=UTF-8&q=" + txtsearch.Text + "&btnG=Google+Search")
End Select
End Sub
Private Sub NavigateUrl_KeyPress1(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles NavigateUrl.KeyPress
If Asc(e.KeyChar) = 13 Then
Wb1.Navigate(NavigateUrl.Text)

datardr = sqlcmd.ExecuteDataReader("select * from Browser


where urlname='" & NavigateUrl.Text & "'")
If Not datardr.Read Then
ins = sqlcmd.ExecuteNonQuery("insert into Browser values
('" & Trim(NavigateUrl.Text) & "')")
End If
datardr.Close()
Else
If Char.IsControl(e.KeyChar) Then Return
With NavigateUrl
Dim TextToFind As String = .Text.Substring(0,
.SelectionStart) & e.KeyChar
Dim Index As Integer = .FindStringExact(TextToFind)
If Index = -1 Then Index = .FindString(TextToFind)
If Index = -1 Then Return
.SelectedIndex = Index
.SelectionStart = TextToFind.Length
.SelectionLength = .Text.Length - .SelectionStart
e.Handled = True
End With
End If
End Sub
Private Sub NavigateUrl_Leave1(ByVal sender As Object, ByVal e As
System.EventArgs) Handles NavigateUrl.Leave
cmbURL.DroppedDown = False
End Sub
Private Sub MenuItem86_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MenuItem86.Click
del = sqlcmd.ExecuteNonQuery("delete from Browser")
NavigateUrl.Items.Clear()
End Sub
End Class

Capture From
Public Class frm_Cap
Private Sub frm_Cap_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.SetBounds(142, 120, 900, 800)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Hide()
DigitalContentManagementFrm.Show()
End Sub
End Class

Connecting Form
Option Strict Off
Option Explicit On
Imports System
Imports System.DirectoryServices
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Runtime.InteropServices
Public Class Connect_frm_dll
Dim aNameSpace
Dim aDomain
Dim computer
Dim objADS = GetObject("ADs:")
Private Sub Connect_frm_dll_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = "
Network Systems"
For Each aNameSpace In objADS
If aNameSpace.Name = "WinNT:" Then
For Each aDomain In aNameSpace
cmb_work_group.Items.Add(aDomain.Name)
Next
End If
Next
End Sub
Private Sub cmb_work_group_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cmb_work_group.SelectedIndexChanged
Dim indx, i As Integer
lst_wrk_grp_systems.Items.Clear()
Dim de As New DirectoryEntry()
de.Path = "WinNT://" & cmb_work_group.SelectedItem
For Each computer As DirectoryEntry In de.Children()
If computer.SchemaClassName = "Computer" Or
computer.SchemaClassName = "Server" Then
lst_wrk_grp_systems.Items.Add(computer.Name)
Next
indx = lst_wrk_grp_systems.Items.Count
For i = 0 To indx - 1
lst_wrk_grp_systems.Items(i).ImageIndex = 75
Next
End Sub
Private Sub ok_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ok.Click
Me.Hide()

DigitalContentManagementFrm.RemoteHost =
Me.lst_wrk_grp_systems.FocusedItem.Text
DigitalContentManagementFrm.Show()
End Sub
End Class

Sharing Forms
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
Imports System.EventArgs
Public Class Sharing_Frm_dll
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As
Integer)
Dim DownloadFileName As String
Dim DownloadFileSize As Integer
Dim FileNumber As Short
Private Sub Sharing_Frm_dll_Activated(ByVal sender As Object, ByVal
e As System.EventArgs) Handles Me.Activated
tree_view_Folder.Nodes.Add(sck_Share_Data.RemoteHost)
End Sub
Private Sub Sharing_Frm_dll_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = "
Transfering"
sck_Share_Data.RemoteHost =
DigitalContentManagementFrm.sck_Identifier.RemoteHost
sck_Share_Data.RemotePort = 8001
sck_Share_Data.Connect()
End Sub

Data

Private Sub sck_Share_Data_ConnectEvent(ByVal sender As Object,


ByVal e As System.EventArgs) Handles sck_Share_Data.ConnectEvent
sck_Share_Data.SendData("GetDrives#")
End Sub
Private Sub sck_Share_Data_DataArrival(ByVal sender As Object, ByVal
e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles
sck_Share_Data.DataArrival
Dim Command_Renamed, txtData As String
Dim data As Object
Dim i As Integer
Dim Position As Short
Dim oneNode As TreeNode
On Error GoTo ConnectionError
sck_Share_Data.GetData(data)

For i = 0 To UBound(data)
txtData = txtData & Chr(data(i))
Next
Position = InStr(1, txtData, "#")
Command_Renamed = VB.Left(txtData, Position - 1)
txtData = Mid(txtData, Position + 1)
Select Case Command_Renamed
Case "GetDrives"
'Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
tree_view_Folder.Enabled = False
GetDrives((txtData))
tree_view_Folder.Enabled = True
Case "GetFolders"
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
tree_view_Folder.Enabled = False
'TreeView1.MousePointer =
System.Windows.Forms.Cursors.Arrow
GetFolder((txtData))
sck_Share_Data.SendData("GetFiles#" &
tree_view_Folder.SelectedNode.Tag)
Me.Cursor = System.Windows.Forms.Cursors.Arrow
tree_view_Folder.Enabled = True
'TreeView1.MousePointer = 0
Case "GetFiles"
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
tree_view_Folder.Enabled = False
'ListView1.MousePointer =
MSComctlLib.MousePointerConstants.ccHourglass
GetFiles((txtData))
tree_view_Folder.Enabled = True
Me.Cursor = System.Windows.Forms.Cursors.Arrow
'ListView1.MousePointer =
MSComctlLib.MousePointerConstants.ccDefault
Case "FileSize"
System.Windows.Forms.Application.DoEvents()
CancelDownload = False
Me.Enabled = False
DownloadFileSize = CInt(txtData)
ProgressBar1.Maximum = DownloadFileSize + 1024
Case "DownloadFile"
FilePut(FileNumber, txtData)
If ProgressBar1.Value <> ProgressBar1.Maximum Then
ProgressBar1.Value = ProgressBar1.Value +
Len(txtData)
If ProgressBar1.Value < ProgressBar1.Maximum Then
sck_Share_Data.SendData("DownloadFileR#")
End If
End If
Case "DownloadComplete"
System.Windows.Forms.Application.DoEvents()
FileClose(FileNumber)
ProgressBar1.Value = ProgressBar1.Maximum
If CancelDownload = False Then MsgBox("File recieved
successfuly from remote system.", MsgBoxStyle.Information, "Remote
Download")

Me.Enabled = True
ProgressBar1.Value = 0
Case "SendFileR"
SendFileR(sck_Share_Data)
Case "CreateDirectory"
oneNode =
tree_view_Folder.SelectedNode.Nodes.Add(txtData)
oneNode.Tag = tree_view_Folder.SelectedNode.FullPath
MsgBox("Directory successfuly created.",
MsgBoxStyle.Information)
Case "FileProperties"
MsgBox(txtData, , "File Properties [REMOTE EXPLORER]")
End Select
Exit Sub
ConnectionError:
MsgBox("Remote Connection Lost!", vbExclamation, "Remote
Control")
End Sub
Sub GetFolder(ByRef Folders As String)
Dim Position As Short
Dim Folder As String
Dim oneNode As TreeNode
On Error Resume Next
Position = InStr(1, Folders, "#")
tree_view_Folder.SelectedNode.Nodes.Clear()
While Position > 0
Folder = VB.Left(Folders, Position - 1)
oneNode = tree_view_Folder.SelectedNode.Nodes.Add(Folder)
oneNode.Tag = oneNode.FullPath
Folders = Mid(Folders, Position + 1)
Position = InStr(1, Folders, "#")
End While
End Sub
Sub GetFiles(ByRef Files As String)
Dim Position As Short
Dim File, ext As String
Dim Arr As Array
On Error Resume Next
lst_view_files.Clear()
Position = InStr(1, Files, "#")
While Position > 0
File = VB.Left(Files, Position - 1)
lst_view_files.Items.Add(File)
Files = Mid(Files, Position + 1)
Position = InStr(1, Files, "#")
End While
Dim indx, i As Integer
indx = lst_view_files.Items.Count
For i = 0 To indx - 1
Dim Fi As String
Fi = lst_view_files.Items(i).Text.ToString
Arr = Split(Fi, ".")
ext = Arr.GetValue(Arr.Length - 1)

ext = ext.ToUpper()
Select Case ext
Case "DOC"
lst_view_files.Items(i).ImageIndex
Case "CSS"
lst_view_files.Items(i).ImageIndex
Case "JPG"
lst_view_files.Items(i).ImageIndex
Case "MDB"
lst_view_files.Items(i).ImageIndex
Case "ZIP"
lst_view_files.Items(i).ImageIndex
Case "SLN"
lst_view_files.Items(i).ImageIndex
Case "BMP"
lst_view_files.Items(i).ImageIndex
Case "VB"
lst_view_files.Items(i).ImageIndex
Case "HTML"
lst_view_files.Items(i).ImageIndex
Case "EXE"
lst_view_files.Items(i).ImageIndex
Case "TXT"
lst_view_files.Items(i).ImageIndex
Case "MP3"
lst_view_files.Items(i).ImageIndex
Case "MPEG"
lst_view_files.Items(i).ImageIndex
Case "DAT"
lst_view_files.Items(i).ImageIndex
Case "DLL"
lst_view_files.Items(i).ImageIndex
Case "RESX"
lst_view_files.Items(i).ImageIndex
Case "ICO"
lst_view_files.Items(i).ImageIndex
Case "VBPR0J"
lst_view_files.Items(i).ImageIndex
Case "XLS"
lst_view_files.Items(i).ImageIndex
Case "PPT"
lst_view_files.Items(i).ImageIndex
Case "C"
lst_view_files.Items(i).ImageIndex
Case "CPP"
lst_view_files.Items(i).ImageIndex
Case "JAR"
lst_view_files.Items(i).ImageIndex
Case Else
lst_view_files.Items(i).ImageIndex
End Select

Next
lst_view_files.Refresh()
End Sub

Sub GetDrives(ByRef drvs As String)

= 3
= 19
= 6
= 7
= 13
= 16
= 15
= 11
= 5
= 4
= 10
= 14
= 14
= 8
= 2
= 9
= 6
= 12
= 18
= 17
= 1
= 20
= 21
= 8

Dim Drive, Position As String


Dim DriveType As String
Dim oneNode As TreeNode
Position = CStr(InStr(1, drvs, "|"))
While CDbl(Position) > 0
Drive = VB.Left(drvs, CDbl(Position) - 1)
drvs = Mid(drvs, CDbl(Position) + 1)
Position = CStr(InStr(1, drvs, vbCrLf))
DriveType = VB.Left(drvs, CDbl(Position) - 1)
oneNode = tree_view_Folder.Nodes.Add(Drive)
oneNode.Tag = oneNode.FullPath
drvs = Mid(drvs, CDbl(Position) + 2)
Position = CStr(InStr(1, drvs, "|"))
End While
End Sub
Private Sub tree_view_Folder_AfterSelect(ByVal sender As Object,
ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles
tree_view_Folder.AfterSelect
Dim nodeTag As String = CType(tree_view_Folder.SelectedNode.Tag,
String)
If nodeTag = UCase(sck_Share_Data.RemoteHost) Then Exit Sub
sck_Share_Data.SendData("GetFolders#" &
tree_view_Folder.SelectedNode.Tag)
lblPath.Text = tree_view_Folder.SelectedNode.Tag
End Sub
Private Sub share_doc_tool_bar_ButtonClick(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.ToolBarButtonClickEventArgs) Handles
share_doc_tool_bar.ButtonClick
Dim FileName As String
Dim Respond As Short
Dim DirName, txtData As String
If tree_view_Folder.SelectedNode.Tag =
UCase(sck_Share_Data.RemoteHost) Then Exit Sub
On Error GoTo CancelError
Dim Parent_Renamed As String
Select Case e.Button.Name
Case "tool_Download"
With SaveFileDialog1
FileName = (tree_view_Folder.SelectedNode.Tag & "\"
& lst_view_files.SelectedItems(0).Text)
.ShowDialog()
If Trim(.FileName) = "" Then Exit Sub
If Len(Dir(.FileName)) <> 0 Then
Respond = MsgBox(.FileName & " is exist!. Do you
wish to overwrite this file?", MsgBoxStyle.Question + MsgBoxStyle.YesNo,
"REMOTE CONTROL")
If Respond = MsgBoxResult.No Then Exit Sub
End If
End With
sck_Share_Data.SendData("DownloadFile#" & FileName)
DownloadFileName = SaveFileDialog1.FileName
FileNumber = FreeFile()

FileOpen(FileNumber, DownloadFileName, OpenMode.Binary)


Case "tool_send"
CancelSend = False
With OpenFileDialog1
.Filter = "All Files|*.*"
.FilterIndex = 1
.ShowDialog()
Dim Fn As String
Dim Arr As Array
Fn = OpenFileDialog1.FileName
Arr = Split(Fn, "\")
Fn = Arr.GetValue(Arr.Length - 1)
FileName = tree_view_Folder.SelectedNode.Tag & "\" &
Fn

System.Windows.Forms.Application.DoEvents()
sck_Share_Data.SendData("SendFileName#" & FileName)
Sleep((10))
SendFile(.FileName, sck_Share_Data)
End With
Case "tool_createfolder"
Parent_Renamed = "Parent Directory:" & vbCrLf &
tree_view_Folder.SelectedNode.Tag & vbCrLf & vbCrLf & vbCrLf & vbCrLf
DirName = InputBox(Parent_Renamed & "Enter SubDirectory
Name", "Remote Explorer")
If Trim(DirName) = "" Then Exit Sub
'DirName = "Folder01"
sck_Share_Data.SendData("CreateDirectory#" &
tree_view_Folder.SelectedNode.Tag & DirName)
Case "tool_run"
FileName = tree_view_Folder.SelectedNode.Tag & "\" &
lst_view_files.SelectedItems(0).Text
sck_Share_Data.SendData("RunFile#" & FileName & Chr(0))
Case "tool_delete"
Respond = MsgBox("Are you sour you want to delete remote
system's file.", vbExclamation + vbYesNo, "Remote Explorer")
If Respond = vbNo Then Exit Sub
FileName = tree_view_Folder.SelectedNode.Tag & "\" &
lst_view_files.SelectedItems(0).Text
sck_Share_Data.SendData("DeleteFile#" & FileName &
Chr(0))
Case "tool_property"
txtData = "GetFileProperties#" &
tree_view_Folder.SelectedNode.Tag & "\" &
lst_view_files.SelectedItems(0).Text
sck_Share_Data.SendData(txtData)
End Select
Exit Sub
CancelError:
End Sub
End Class

SQL COMMANDS Class


Imports System.Data
Imports System.Data.OleDb
Public Class SqlCommands
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim adap As OleDbDataAdapter
Dim dr As OleDbDataReader
Public Function estrablishconnection() As OleDbConnection
cn = New OleDbConnection
cn.ConnectionString = "Provider=SQLOLEDB.1;User ID=sa;Initial
Catalog=DigitalContentManagement"
cn.Open()
Return cn
End Function
Public Function ExecuteDataReader(ByVal str_sql As String) As
OleDbDataReader
cmd = New OleDbCommand(str_sql, cn)
dr = cmd.ExecuteReader
Return dr
End Function
Public Function ExecuteNonQuery(ByVal str_sql As String) As Boolean
cmd = New OleDb.OleDbCommand(str_sql, cn)
cmd.ExecuteNonQuery()
End Function
Public Function FllDataSet(ByVal str_sql As String, ByVal
str_TableName As String) As DataSet
Dim adap As New OleDbDataAdapter(str_sql, cn)
Dim ds As New DataSet
adap.Fill(ds, str_TableName)
Return ds
End Function
End Class