Professional Documents
Culture Documents
INTRODUCTION
1
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.
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.
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
The software is developed in VB.Net and was tested for its successful
working
The system uses VB.Net as the front-end tool for user interaction.
CPU Clock
40 GB
System Memory
512 MB
Cache Memory
512MB
Monitor
15 inch
Web camera
Creative
Keyboard
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
Backend Software
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
95/98 to large,
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
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
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
Trigger an action.
Conform an action.
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.
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
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
DATATYPE
varchar
DESCRIPTION
url name
DATATYPE
varchar
Varchar
DESCRIPTION
User Name
Password
BROWSER
FIELD NAME
urlname
Login
FIELD NAME
usrName
surpass
Level-0
User
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
Preserve
Manager
Level-2
User
Overall management
of staff and customer
records
Manage
Customer
details
Document details
Report
Store
Store
Preserve for
long term
Report
Long term
Long term
Report
Preserve
Preserve for
Short term
Short term
Manager
Short tem
Report
Storing
Capturing
Code Design
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
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.
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,
Third
Edition,
1999.
DATABASE
MacGrawhill,
SYSTEM
Fifth
CONCEPT,
Edition,
2001.
Web site
www.microsoft.com
www.clusty.com
8 APPENDICES
1
Sample Screen
Sample Report
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
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
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
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
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)
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
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
= 3
= 19
= 6
= 7
= 13
= 16
= 15
= 11
= 5
= 4
= 10
= 14
= 14
= 8
= 2
= 9
= 6
= 12
= 18
= 17
= 1
= 20
= 21
= 8
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