Vous êtes sur la page 1sur 85

Students Management Systems

Name of the Project: Students Management Systems

Name of the Team Member

Role

1. Yachin Kapoor 2. Isha Gulsia

DEVELOPER DESIGNER

3. Mohammad Naved Ahmad 4. Sonia Negi 5. Charu Rana


6. Ashish Otwal Rajput

DBA

TESTER

DEBUGGER DBA

Name and Signature of the Project Team Members:

1. Yachin Kapoor 2. Isha Gulsia 3. Mohammad Naved Ahmad 4. Sonia Negi 5. Charu Rana 6. Ashish Otwal Rajput

.... .... .... .

Signature of the Counselor

..

Date.............

PREFACE
This project has been developed as a part of minor project. The purpose of minor project is to familiarize students with the present working environment in the country and outside. To provide them with an opportunity to study the latest technical trends those has been established as well as the ones that are developing. The project undertaken institutes requirement application system Management System for of Clients. was to fulfill the to establish an for Students the various types

ACKNOWLEDGEMENT
I am overwhelmed in all humbleness and gratefulness to acknowledge my depth to all those who have helped me to put these ideas well above the level of simplicity and into something concrete. The summer project period proved to me one of the most productive and knowledgeable experiences of my career. I acknowledge Mr. Varun Tiwari for sparing his busy schedules to provide me with information, which was mandatory for the completion of Minor project.

TABLE OF CONTENTS
I. Introduction of the project II. Role Played During Project. III. Software Requirement IV. Hardware Requirement V. Tools used during development VI. Objective of the project VII. Data Flow Diagrams VIII. Flow Chart IX. System Design X. Coding XI. Outputs XII. Testing XIII. Debugging XIV. Implementation XV. Scope and flexibility of the Project XVI. Suggestions and Recommendations XVII. Observations XVIII. References

INTRODUCTION OF THE PROJECT


Computerization
It is neither partial to provide all the equipment to each office worker nor convenient to make each office student go to central service place whenever these services are required. What we require in an automation system is convenient means of integration these services for each user. The indication is achieved using computers combination of appropriate computing equipment, which can support a wide variety of input/output and storage devices and data communication along with necessary software you perform required function

Student Management Function


The Student management is a system which is used to maintain the record of the students of an institute. Basically, an institute required to make the records of students attendance, students marks, and students basic information. The main function of this system is to fulfill the above requirement of an institution, which help them to maintain proper record of the students. Through this system you can perform the following task:1. Administrator can add a student record. 2. Administrator can add a Faculty record. 3. Student can only read there basic information, attendance of the subjects and marks of the I and II internals. 4. Faculty can read student detail. 5. Faculty can change student attendance of the particular subject. 6. Faculty can change the I and II internals marks of the student in the particular subject.

ROLE PLAYED DURING PROJECT


Project was assigned to me and my colleagues, which belongs to the same university. We were all in all for the project. Our responsibility was from requirement analysis to implementation. At the beginning our role was of analyst. Then our role switched to the designer, however in this role our external guide has given us technical support. Subsequently we have played the role of programmer. When the coding was completed we have found ourselves in a role of a Tester. This role was just reverse to the above all other roles. Since all other roles were of constructive type but here we would have to show the destructive nature. However the complete implementation has to be taken place in near future. But for testing and validation purpose we have implemented the system in the simulated working environment. To create an efficient database we have tried to be a good database designer. As well as to make interface effective web designing has also done from our side.

SOFTWARE REQUIREMENT
Since this project is about on line examination system so all the requirements for a project is applied to it.

Software Requirements :- Visual Studio 2005 Operating system:- Windows9x/Unix based O.S. Storage:- MS Access Database
Editor: - VB.Net Language: - VB.Net, SQL DBMS: - MS-Access

HARDWARE REQUIREMENT

The minimal requirements for hardware are: Intel Pentium class, 133 MHz or higher; RAM (256 MB or higher recommended); Hard disk space required to install is 600 MB, required to run-370 MB RAM; Display is 1024 X 768 ,256 colours;

TOOLS USED DURING DEVELOPMENT

Editor: - VB.Net Language: - VB.Net, SQL DBMS: - MS-Access

OBJECTIVE OF THE PROJECT


Whenever a new project is taken or new system is developed it has certain objective. The objective may vary from system to system. .The main objective of making this system is to Computerize the student management system of an institute. In short the main objectives of computerization are as follows: 1. Better services 2. Easy maintenance of the student management 3. Record Security 4. Every student can check its details, attendance and result. 5. Easy maintenance of attendance records.

DATA FLOW DIAGRAM OF THE PROJECT


Data flow diagrams provide an indication of how data are transformed as they move through the system and depict the functions that transform the data flow. In other words these are the graphical representation of the requirement of the system. Data flow diagrams for our system are in next few pages:-

ZERO LEVEL DFD

STUDENT

INPUT
STUDENT INFORMATION

MANAGEMEN T SYSTEM

OUTPUT
VIEW

IST LEVEL DFD

STUDENT DETAILS

STUDENT MANAGEMEN T SYSTEM

ISSUING STUDENT ENROL. NO.

DATABASE

ND LEVEL DFD

STUDENT

STUDENT DATABASE

STUDENT MANAGEMEN T SYSTEM

STUDENT DETAILS

ENROL. NO. ISSUED TO STUDENT

SYSTEM DESIGN
Microsofts .NET is a collection of new technologies that are revolutionizing
Windows-based software development. A major theme of the .NET is the idea of Web Services, allowing software to communicate directly with other software using Internet technologies. The .NET Framework and Visual Studio .NET, two more core aspects of this initiative, provide a multi-language environment in which developers can create Web Services and other kinds of applications. Microsoft views .NET as a vision, a platform for the digital future. A more concrete and equally accurate way to think about this new initiative is to understand that .NET is a brand, one that Microsoft has applied to several different technologies. Some of these technologies are entirely new, providing new service and new possibilities. Others allow an updated approach to creating the kinds of windows applications we know today.

The .NET Framework:


To understand the changes brought by the .NET Framework, the place to start is windows DNA (Distributed internet Architecture). The technologies windows DNA includes-COM, ASP and others- were developed over time. Applications written in different languages also access system services in different ways. C++ applications can make direct calls to the Operating Systems through Win32. These differences make life challenging for developers working in more than one language. Every application written using the Framework depends on a fundamental library called Common Language Runtime (CLR). The CLR provides a common set of data types and other services that can be used by all languages that target the .NET Framework. Along with the CLR the .NET Framework includes the .NET Framework Library, a large set of standard classes and other types that can be used by any .NET Framework application written in any language. In the nutshell, we can say that

This is the first development platform designed from the group up with the internet in the mind. The vision of .NET is globally distributed systems, using XML as the universal fasten to allow functions running on different computers across an organization or across the world to come together in a single application.

Common Language Runtime (CLR):


CLR, Common Language Runtime is the glue that binds .NET. it integrates software under a common Operating System, providing a standard foundation for building applications. CLR is the basic of everything in .NET Framework. CLR is the loader that brings components to life inside an Operating System process. CLR is managed code. Since it is object oriented programming, it has managed objects. It also provides an automatic garbage dump for freeing up memory that is no longer needed. This is similar to java and a great relief to C+ + programmers. The CLR under the .NET Framework is responsible for runtime services such as language integration, security enforcement, and memory, process and thread management. It also features such as life-cycle management, strong type naming, cross-language exception handling, and dynamic binding and so on. The CLR Common Language Runtime replaces COM and WIN32s LoadLibrary. It has a common set of data types. It brings standard implementation and specifications to application development. CLR Common Language Runtime programs are stored in modules, in CIL - Common Intermediate Language. The Common Language Runtime is the execution engine for .NET Framework applications. It provides a number of services, including the following: Code Management-loading and execution; Application memory isolation; Verification of type safety; Conversion of IL to native, platform-dependent code; Access to metadata, which is enhanced type information; Managing memory for managed objects;

Enforcement of code access security; Exception handling, including cross-language exceptions; Interoperation between managed code, COM objects and pre-existing DLLs; Automation of object layout; Support for developer services-profiling, debugging and so on;

User and Program Interface:


.NET Framework provides three ways to provide and manage user interface: Windows Form Web Forms Console Application And one way to switch interfaces with remote components: Web Service Windows Forms: Windows Forms also called as Win Form are used to create GUI for Windows desktop applications. The idea of Win Forms has been borrowed from Windows Foundation Classes (WFC) that was used for Visual J++. Win Forms provide an integrated and unified way of developing GUI. It has a rich variety of Windows Controls and user interface support. Win Forms is another group of wrapper classes that deals specifically with GUI. Win Form classes encapsulate the windows Graphical APIs. Win Forms is the part of the namespace System-Win forms. Web Forms: The Web Form provides similar tools for Web applications. Web Forms has been introduced in .NET as a part of ASP.NET. Web Forms is a form of engine that provides a browser-based user interface. Web Forms also has the intelligence to use HTML, DHTML and WML etc. to draw the control on the web page based on the browsers capabilities. Console Application:

Microsoft does not draw attention to the capability to write character based applications, the .NET Framework does include an interface for such console application Batch process for example and can now have components integrated into them, that are written to a console interface. As with Win Forms and Web Forms, this console interface is available for application written in any .NET language. Visual Basic .NET can be used for true console application.

MICROSOFT ACCESS
Microsoft Office Access, previously known as Microsoft Access, is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software development tools. It is a member of the 2007 Microsoft Office system. Access can use data stored in Access/Jet, Microsoft SQL Server, Oracle, or any ODBC-compliant data container (including MySQL and PostgreSQL). Skilled software developers and data architects use it to develop application software. Relatively unskilled programmers and non-programmer "power users" can use it to build simple applications. It supports some object-oriented techniques but falls short of being a fully object-oriented development tool. Access was also the name of a communications program from Microsoft, meant to compete with ProComm and other programs. This proved a failure and was dropped.[1] Years later Microsoft reused the name for its database software. Microsoft also publish a free software for Access, named "Microsoft Access Runtime", which allows to run Access files, but not to edit them, or to watch the tasks pane that allow you to access tables, forms, etc, so the Access file works like an .EXE software.

History Access 1.1 manual cover Access version 1.0 was released in November 1992, followed in May of 1993 by an Access 1.1 release to improve compatibility with other Microsoft products. Microsoft specified the minimum operating system for Version 2.0 as Microsoft Windows v3.0 with 4 MB of RAM. 6 MB RAM was recommended along with a minimum of 8 MB of available hard disk space (14 MB hard disk space recommended). The product was shipped on seven 1.44 MB diskettes. The manual shows a 1993 copyright date. The software worked well with small recordsets but testing showed some circumstances caused data corruption. For example, file sizes over 10 MB were

problematic (note that most hard disks were smaller than 500 MB at the time this was in wide use). The Getting Started manual warns about a number of circumstances where obsolete device drivers or incorrect configurations can cause data loss. However, in recent years with the phasing out of Windows 95, 98 and ME, improved network reliability and Microsoft having released eight service packs for the Jet Database Engine, the reliablity of Access databases has been vastly improved. Access's initial codename was Cirrus; the forms engine was called Ruby. This was before Visual Basic - Bill Gates saw the prototypes and decided that the BASIC language component should be co-developed as a separate expandable application, a project called Thunder. The two projects were developed separately as the underlying forms engines were incompatible with each other; however, these were merged together again after VBA.

USES Access is used by small businesses, within departments of large corporations, and by hobby programmers to create ad hoc customized desktop systems for handling the creation and manipulation of data. Microsoft has strongly recommended for the past decade that Jet databases are inappropriate for basic web based applications hosted on Microsoft's Internet Information Services and utilizing Microsoft Active Server Pages ASP. Some professional application developers use Access for rapid application development, especially for the creation of prototypes and standalone applications that serve as tools for on-the-road salespeople. Access applications do not scale well if data access is via a network, however by moving an Access application to a an Application Server such as Microsoft Terminal Services the number of users that can be supported is substantially increased. Moving to an Application Server also has the benefit of allowing database use over a Wide Area Network. Applications that are used by more than a handful of people tend to rely on Client-Server based solutions. However, an Access "front end" (the forms, reports, queries and VB code) can be used against a host of database backends, including JET (file-based database engine, used in Access by default), Microsoft SQL Server, Oracle, and all other ODBC-compliant product.

In addition to traditional ODBC methods, Access also offers "Access Data Projects" for accessing SQL Server data, which provides a number of advantages over linked tables. Unfortunately, there are also several bugs with the technology, and after years of promoting it, Microsoft now appears to be downplaying its use.[

Features One of the benefits of Access from a programmer's perspective is its relative compatibility with SQL (structured query language) queries can be viewed graphically or edited as SQL statements, and SQL statements can be used directly in Macros and VBA Modules to manipulate Access tables. Users can mix and use both VBA and "Macros" for programming forms and logic and offers object-oriented possibilities. MSDE (Microsoft SQL Server Desktop Engine) 2000, a scaled down version of Microsoft SQL Server 2000, has been a free download for a decade and may be used with Access as an alternative to the Jet Database Engine. Unlike other RDBMS, Microsoft Access does not implement database triggers or stored procedures. Starting in Access 2000 (Jet 4.0), there is a new syntax for creating queries with parameters, in a way that looks like creating stored procedures, but these procedures are still limited to one statement per procedure.[2] In ADP files (supported in Access 2000 and later), the database-related features are geared more towards a client-server architecture with MSDE or Microsoft SQL Server serving as the back-end instead of using the Jet Engine. Thus, it supports the creation of nearly all objects in the underlying server (tables with constraints and triggers, views, stored procedures and UDF-s). However, only forms, reports, macros and modules are stored in the ADP file (the other objects are stored in the back-end database). This centralization of queries and tables in the database server provides a more reliable development environment for most businesses. Development Access allows relatively quick development because of very good GUI design tools, and high level integration of GUI design and data objects. All database

tables, queries, forms, and reports are stored in the database. For query development, Access utilizes the Query Design Grid, a graphical user interface that allows users to create queries without knowledge of the SQL programming language. In the Query Design Grid, users can "show" the source tables of the query and select the fields they want returned by clicking and dragging them into the grid. Joins can be created by clicking and dragging fields in tables to fields in other tables. Access allows users to view and manipulate the SQL code if desired. The programming language available in Access is, as in other products of the Microsoft Office suite, Microsoft Visual Basic for Applications. Two database access libraries of COM components are provided: the obsolete Data Access Objects (DAO), which has not been included in Office, Windows or MDAC for most of the past decade. ADO has been much more widespread; and this is why it is recommended to upgrade all DAO to ADO (but still accessible) by ActiveX Data Objects (ADO); however (DAO) has been reintroduced as an option in the latest version, Microsoft Access 2007. Beside DAO and ADO, developers can also use OLE DB and ODBC for developing native C/C++ programs for Access.[3] Many developers who use Access use the Leszynski naming convention, though this is not universal; it is a programming convention, not a DBMSenforced rule. Except in VBA, it is also made redundant by the fact that Access categorises each object automatically and always shows the object type, by prefixing Table: or Query: before the object name when referencing a list of different database objects. Microsoft Access can be applied to small projects (the Access 97 speed characterization was done for 32 users)[5]but scales poorly to larger projects with more than several 10MB of data or many users because of the way indexing and locking are handled. As a Microsoft Access database can be cached locally when used on network, processing speed may be substantially better when there is only a single user. Because of the effect of packet latency on the record locking system, Access databases are effectively too slow to be used on a Virtual Private Network (VPN) or a Wide Area Network (WAN). If an Access Database needs to be accessed over a WAN then Microsoft Terminal Services is an effective solution. Access Data Projects work great over VPN and WAN.

Access includes an Upsizing Wizard that allows users to upsize their database to Microsoft SQL Server if they want to move to an ODBC client-server database. One recommended technique is to migrate to SQL Server and utilize Access Data Projects. This allows stored procedures, views, and constraints using standard SQL. Additionally this full client-server design significantly reduces maintenance and availability problems. Access allows no relative paths when linking, so the development environment should have the same path as the production environment (though it is possible to write a "dynamic-linker" routine in VBA). This technique also allows the developer to divide the application among different files.

Protection If the database design needs to be secured to prevent changes, Access databases can be locked/protected (and the source code compiled) by converting the database to an .MDE file. All changes to the VBA project (forms or reports) need to be made to the original MDB and then reconverted to MDE. Some tools are available for unlocking and 'decompiling', although certain elements including original VBA comments and formatting are normally irretrievable.

Coding :-

Form1.vb Code:Public Class Form1 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick login.Show() Timer1.Enabled = False End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Timer1.Enabled = True End Sub End Class

Login.vb

Code:Imports System.Data.OleDb Public Class login Dim con As OleDb.OleDbConnection Dim cmd As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader Dim s As New std_detail Dim fac As New fac_opt Dim ad As New admin Private Sub login_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" ComboBox1.Text = "" End Sub Private Sub login_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = MDIParent1 'Me.BackColor = Color.Transparent Me.Location = New System.Drawing.Point(450, 350) Me.Size = New System.Drawing.Point(123, 123) Timer1.Enabled = True Label1.Hide() Label2.Hide() Label3.Hide() Label4.Hide() Label5.Hide() Shape1.Hide() Shape2.Hide() TextBox1.Hide() TextBox2.Hide() ComboBox1.Hide() sub_btn.Hide() exit_btn.Hide() pb1.Hide() pb2.Hide() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim x, y As Integer x = Me.Location.X y = Me.Location.Y If Me.Location.X = 250 And Me.Location.Y = 250 Then Label1.Show() Label2.Show() Label3.Show()

Else

Label4.Show() Label5.Show() Shape1.Show() Shape2.Show() TextBox1.Show() TextBox1.Focus() TextBox2.Show() ComboBox1.Show() sub_btn.Show() exit_btn.Show() Timer1.Enabled = False

Me.Location = New System.Drawing.Point(x - 4, y - 2) Me.Width = Me.Width + 8 Me.Height = Me.Height + 4 End If End Sub Private Sub exit_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exit_btn.Click End End Sub Private Sub sub_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sub_btn.Click con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Baisc_Details.mdb") con.Open() Timer2.Enabled = True End Sub Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick pb1.Show() pb2.Show() pb1.Value = pb1.Value + 1 pb2.Value = pb2.Value + 1 pic1.Visible = True pic2.Visible = True If pb1.Value = 100 Then pb1.Value = 0 pb2.Value = 0 pb1.Hide() pb2.Hide() pic1.Visible = False pic2.Visible = False Timer2.Enabled = False If ComboBox1.SelectedIndex = 0 Then If TextBox1.Text <> "" And TextBox2.Text <> "" Then cmd = New OleDbCommand("select * from Student where Enrollment_no='" & TextBox1.Text & "' AND Password='" & TextBox2.Text & "'", con) dr = cmd.ExecuteReader While dr.Read If TextBox1.Text = dr(0) And TextBox2.Text = dr(8) Then TextBox3.Text = dr(0) s.TextBox29.Text = 1 s.Show() 'Me.Hide() Else

TextBox4.Text = 1 'Timer3.Enabled = True End If End While dr.Close() con.Close() Else MsgBox("Username Or Password is not empty") End If ElseIf ComboBox1.SelectedIndex = 1 Then TextBox3.Text = "" If TextBox1.Text <> "" And TextBox2.Text <> "" Then cmd = New OleDbCommand("select * from Faculty where Username='" & TextBox1.Text & "' AND Password='" & TextBox2.Text & "'", con) dr = cmd.ExecuteReader While dr.Read If TextBox1.Text = dr(7) And TextBox2.Text = dr(8) Then fac.Show() Me.Close() Else MsgBox("Username Or Password is not valid") End If End While dr.Close() con.Close() Else MsgBox("Username Or Password is not empty") End If ElseIf ComboBox1.SelectedIndex = 2 Then TextBox3.Text = "" If TextBox1.Text <> "" And TextBox2.Text <> "" Then cmd = New OleDbCommand("select * from Admin where Username='" & TextBox1.Text & "' AND Password='" & TextBox2.Text & "'", con) dr = cmd.ExecuteReader While dr.Read If TextBox1.Text = dr(0) And TextBox2.Text = dr(1) Then ad.Show() Me.Hide() 'Me.Close() Else MsgBox("Username Or Password is not valid") End If End While dr.Close() con.Close() Else MsgBox("Username Or Password is not empty") End If Else MsgBox("Select the type") End If End If End Sub Private Sub TextBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Click TextBox1.Text = "" End Sub

Private Sub TextBox2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.Click TextBox2.Text = "" End Sub Private Sub TextBox3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox3.Click TextBox3.Text = "" End Sub Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick If TextBox4.Text = 1 Then MsgBox("Username Or Password is not valid") End If Timer3.Enabled = False End Sub End Class

Std_detail.vb

Code:Imports System.Data.OleDb Public Class std_detail Dim con, con1 As OleDb.OleDbConnection Dim cmd, cmd1 As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader Dim a, b, i As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Close() TextBox29.Text = "" TextBox2.Text = "" TextBox3.Text = "" If login.Visible = True Then login.Show() Me.Hide() ElseIf login.Visible = False Then fac_opt.Show() Me.Hide() End If End Sub Sub std() con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Baisc_Details.mdb") con.Open() If TextBox29.Text = "1" Then cmd = New OleDbCommand("select * from Student where Enrollment_no='" & login.TextBox3.Text & "' ", con) ElseIf TextBox29.Text = "2" Then cmd = New OleDbCommand("select * from Student where Enrollment_no='" & TextBox2.Text & "' ", con) End If dr = cmd.ExecuteReader While dr.Read TextBox2.Text = dr(0) TextBox3.Text = dr(1) TextBox4.Text = dr(2) TextBox5.Text = dr(3) TextBox6.Text = dr(4) TextBox7.Text = dr(5) TextBox8.Text = dr(6) End While a = 1 dr.Close() con.Close() 'For i = 1 To 28 'tb(i).Enabled = False

'Next i End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Visible = True TextBox9.Visible = True TextBox10.Visible = True TextBox11.Visible = True TextBox12.Visible = True TextBox13.Visible = True TextBox14.Visible = True Button2.Hide() If TextBox8.Text = 1 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con.Open() Label3.Visible = True End If If TextBox8.Text = 2 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con.Open() Label4.Visible = True End If If TextBox8.Text = 3 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con.Open() Label5.Visible = True End If If TextBox8.Text = 4 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con.Open() Label6.Visible = True End If If TextBox8.Text = 5 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con.Open() Label7.Visible = True TextBox14.Visible = False End If If TextBox8.Text = 6 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con.Open() Label8.Visible = True TextBox14.Visible = False End If cmd = New OleDbCommand("select * from Attendence where Enrollment_no='" & TextBox2.Text & "'", con) dr = cmd.ExecuteReader While dr.Read TextBox1.Text = dr(0) TextBox9.Text = dr(1) TextBox10.Text = dr(2) TextBox11.Text = dr(3)

TextBox12.Text = dr(4) TextBox13.Text = dr(5) TextBox14.Text = dr(6) End While dr.Close() con.Close() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox15.Visible = True TextBox16.Visible = True TextBox17.Visible = True TextBox18.Visible = True TextBox19.Visible = True TextBox20.Visible = True TextBox21.Visible = True Button3.Hide() If TextBox8.Text = 1 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con.Open() Label14.Visible = True End If If TextBox8.Text = 2 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con.Open() Label13.Visible = True End If If TextBox8.Text = 3 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con.Open() Label12.Visible = True End If If TextBox8.Text = 4 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con.Open() Label11.Visible = True End If If TextBox8.Text = 5 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con.Open() Label10.Visible = True TextBox21.Visible = False End If If TextBox8.Text = 6 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con.Open() Label9.Visible = True TextBox21.Visible = False End If cmd = New OleDbCommand("select * from I_internals where Enrollment_no='" & TextBox2.Text & "'", con)

dr = cmd.ExecuteReader While dr.Read TextBox15.Text = dr(0) TextBox16.Text = dr(1) TextBox17.Text = dr(2) TextBox18.Text = dr(3) TextBox19.Text = dr(4) TextBox20.Text = dr(5) TextBox21.Text = dr(6) End While dr.Close() con.Close() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click TextBox22.Visible = True TextBox23.Visible = True TextBox24.Visible = True TextBox25.Visible = True TextBox26.Visible = True TextBox27.Visible = True TextBox28.Visible = True Button4.Hide() If TextBox8.Text = 1 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con.Open() Label20.Visible = True End If If TextBox8.Text = 2 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con.Open() Label19.Visible = True End If If TextBox8.Text = 3 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con.Open() Label18.Visible = True End If If TextBox8.Text = 4 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con.Open() Label17.Visible = True End If If TextBox8.Text = 5 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con.Open() Label16.Visible = True TextBox28.Visible = False End If If TextBox8.Text = 6 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con.Open() Label15.Visible = True

TextBox28.Visible = False End If cmd = New OleDbCommand("select * from II_internals where Enrollment_no='" & TextBox2.Text & "'", con) dr = cmd.ExecuteReader While dr.Read TextBox22.Text = dr(0) TextBox23.Text = dr(1) TextBox24.Text = dr(2) TextBox25.Text = dr(3) TextBox26.Text = dr(4) TextBox27.Text = dr(5) TextBox28.Text = dr(6) End While dr.Close() con.Close() End Sub Private Sub std_detail_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated std() End Sub Private Sub TextBox2_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged Button2.Show() TextBox1.Visible = False TextBox9.Visible = False TextBox10.Visible = False TextBox11.Visible = False TextBox12.Visible = False TextBox13.Visible = False TextBox14.Visible = False Label3.Visible = False Label4.Visible = False Label5.Visible = False Label6.Visible = False Label7.Visible = False Label8.Visible = False Button3.Show() TextBox15.Visible = False TextBox16.Visible = False TextBox17.Visible = False TextBox18.Visible = False TextBox19.Visible = False TextBox20.Visible = False TextBox21.Visible = False Label9.Visible = False Label10.Visible = False Label11.Visible = False Label12.Visible = False Label13.Visible = False Label14.Visible = False Button4.Show() TextBox22.Visible = False TextBox23.Visible = False TextBox24.Visible = False TextBox25.Visible = False TextBox26.Visible = False TextBox27.Visible = False

TextBox28.Visible Label15.Visible = Label16.Visible = Label17.Visible = Label18.Visible = Label19.Visible = Label20.Visible = End Sub End Class

= False False False False False False False

Fac_opt.vb

Code:Imports System.Data.OleDb Public Class fac_opt Dim roll As New std_detail Dim sem As New sel_sem Dim res As New result Dim gen As String Dim r As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Interval = 10 Timer1.Enabled = True End Sub Private Sub fac_opt_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = MDIParent1 Dim con As OleDb.OleDbConnection Dim cmd As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader RadioButton1.Checked = False con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Baisc_Details.mdb") con.Open() cmd = New OleDb.OleDbCommand("select * from Faculty where Username='" & login.TextBox1.Text & "'", con) dr = cmd.ExecuteReader While dr.Read If dr(3) = "Male" Then gen = "Mr." ElseIf dr(3) = "Female" And dr(4) = "no" Then gen = "Mss." Else gen = "Mrs." End If Label1.Text = "Welcome " + gen + " " + dr(1) End While dr.Close() con.Close() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Value = ProgressBar1.Value + 1 ProgressBar1.Visible = True If ProgressBar1.Value = 100 Then ProgressBar1.Visible = False ProgressBar1.Value = 0 If RadioButton1.Checked = True Then Timer1.Interval = 10000 TextBox1.Text = InputBox("Enter Enrollment Number") roll.TextBox29.Text = 2

roll.TextBox2.Text = TextBox1.Text roll.Show() Timer1.Enabled = False ElseIf RadioButton2.Checked = True Then sem.Show() sem.TextBox4.Text = 1 Timer1.Enabled = False ElseIf RadioButton3.Checked = True Then sem.Show() sem.TextBox4.Text = "" 'res.Show() 'Me.Hide() Timer1.Enabled = False End If End If End Sub Private Sub RadioButton4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub End Class

Sel_sem.vb

Code:Public Class sel_sem Dim att As New att_reg Dim res As New result Dim i As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If RadioButton1.Checked = True Then TextBox1.Text = RadioButton1.Text TextBox2.Text = 1 TextBox3.Text = 2 ElseIf RadioButton2.Checked = True Then TextBox1.Text = RadioButton2.Text TextBox2.Text = 1 TextBox3.Text = 3 ElseIf RadioButton3.Checked = True Then TextBox1.Text = RadioButton3.Text TextBox2.Text = 1 TextBox3.Text = 4 ElseIf RadioButton4.Checked = True Then TextBox1.Text = RadioButton4.Text TextBox2.Text = 1 TextBox3.Text = 5 ElseIf RadioButton5.Checked = True Then TextBox1.Text = RadioButton5.Text TextBox2.Text = 1 TextBox3.Text = 6 ElseIf RadioButton6.Checked = True Then TextBox1.Text = RadioButton6.Text TextBox2.Text = 1 TextBox3.Text = 7 ElseIf RadioButton7.Checked = True Then TextBox1.Text = RadioButton7.Text TextBox2.Text = 2 TextBox3.Text = 2 ElseIf RadioButton8.Checked = True Then TextBox1.Text = RadioButton8.Text TextBox2.Text = 2 TextBox3.Text = 3 ElseIf RadioButton9.Checked = True Then TextBox1.Text = RadioButton9.Text TextBox2.Text = 2 TextBox3.Text = 4 ElseIf RadioButton10.Checked = True Then TextBox1.Text = RadioButton10.Text TextBox2.Text = 2 TextBox3.Text = 5 ElseIf RadioButton11.Checked = True Then TextBox1.Text = RadioButton11.Text

TextBox2.Text = 2 TextBox3.Text = 6 ElseIf RadioButton12.Checked = True Then TextBox1.Text = RadioButton12.Text TextBox2.Text = 2 TextBox3.Text = 7 ElseIf RadioButton13.Checked = True Then TextBox1.Text = RadioButton13.Text TextBox2.Text = 3 TextBox3.Text = 2 ElseIf RadioButton14.Checked = True Then TextBox1.Text = RadioButton14.Text TextBox2.Text = 3 TextBox3.Text = 3 ElseIf RadioButton15.Checked = True Then TextBox1.Text = RadioButton15.Text TextBox2.Text = 3 TextBox3.Text = 4 ElseIf RadioButton16.Checked = True Then TextBox1.Text = RadioButton16.Text TextBox2.Text = 3 TextBox3.Text = 5 ElseIf RadioButton17.Checked = True Then TextBox1.Text = RadioButton17.Text TextBox2.Text = 3 TextBox3.Text = 6 ElseIf RadioButton18.Checked = True Then TextBox1.Text = RadioButton18.Text TextBox2.Text = 3 TextBox3.Text = 7 ElseIf RadioButton19.Checked = True Then TextBox1.Text = RadioButton19.Text TextBox2.Text = 4 TextBox3.Text = 2 ElseIf RadioButton20.Checked = True Then TextBox1.Text = RadioButton20.Text TextBox2.Text = 4 TextBox3.Text = 3 ElseIf RadioButton21.Checked = True Then TextBox1.Text = RadioButton21.Text TextBox2.Text = 4 TextBox3.Text = 4 ElseIf RadioButton22.Checked = True Then TextBox1.Text = RadioButton22.Text TextBox2.Text = 4 TextBox3.Text = 5 ElseIf RadioButton23.Checked = True Then TextBox1.Text = RadioButton23.Text TextBox2.Text = 4 TextBox3.Text = 6 ElseIf RadioButton24.Checked = True Then TextBox1.Text = RadioButton24.Text TextBox2.Text = 4 TextBox3.Text = 7 ElseIf RadioButton25.Checked = True Then TextBox1.Text = RadioButton25.Text TextBox2.Text = 5 TextBox3.Text = 2 ElseIf RadioButton26.Checked = True Then TextBox1.Text = RadioButton26.Text TextBox2.Text = 5

TextBox3.Text = 3 ElseIf RadioButton27.Checked = True Then TextBox1.Text = RadioButton27.Text TextBox2.Text = 5 TextBox3.Text = 4 ElseIf RadioButton28.Checked = True Then TextBox1.Text = RadioButton28.Text TextBox2.Text = 5 TextBox3.Text = 5 ElseIf RadioButton29.Checked = True Then TextBox1.Text = RadioButton29.Text TextBox2.Text = 5 TextBox3.Text = 6 ElseIf RadioButton30.Checked = True Then TextBox1.Text = RadioButton30.Text TextBox2.Text = 5 TextBox3.Text = 7 ElseIf RadioButton31.Checked = True Then TextBox1.Text = RadioButton31.Text TextBox2.Text = 6 TextBox3.Text = 2 ElseIf RadioButton32.Checked = True Then TextBox1.Text = RadioButton32.Text TextBox2.Text = 6 TextBox3.Text = 3 ElseIf RadioButton33.Checked = True Then TextBox1.Text = RadioButton33.Text TextBox2.Text = 6 TextBox3.Text = 4 ElseIf RadioButton34.Checked = True Then TextBox1.Text = RadioButton34.Text TextBox2.Text = 6 TextBox3.Text = 5 ElseIf RadioButton35.Checked = True Then TextBox1.Text = RadioButton35.Text TextBox2.Text = 6 TextBox3.Text = 6 End If att.TextBox6.Text = TextBox1.Text att.TextBox5.Text = TextBox2.Text att.TextBox4.Text = TextBox3.Text res.TextBox1.Text = TextBox1.Text res.TextBox2.Text = TextBox2.Text res.TextBox5.Text = TextBox3.Text If TextBox4.Text = "1" Then att.Show() att.Refresh() Me.Hide() ElseIf TextBox4.Text = "" Then res.Show() res.Refresh() Me.Hide() End If End Sub Private Sub sel_sem_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated TextBox1.Text = "" TextBox2.Text = ""

TextBox3.Text = "" 'att.TextBox4.Text = "" 'att.TextBox5.Text = "" 'att.TextBox6.Text = "" RadioButton1.Checked = False RadioButton2.Checked = False RadioButton3.Checked = False RadioButton4.Checked = False RadioButton5.Checked = False RadioButton6.Checked = False RadioButton7.Checked = False RadioButton8.Checked = False RadioButton9.Checked = False RadioButton10.Checked = False RadioButton11.Checked = False RadioButton12.Checked = False RadioButton13.Checked = False RadioButton14.Checked = False RadioButton15.Checked = False RadioButton16.Checked = False RadioButton17.Checked = False RadioButton18.Checked = False RadioButton19.Checked = False RadioButton20.Checked = False RadioButton21.Checked = False RadioButton22.Checked = False RadioButton23.Checked = False RadioButton24.Checked = False RadioButton25.Checked = False RadioButton26.Checked = False RadioButton27.Checked = False RadioButton28.Checked = False RadioButton29.Checked = False RadioButton30.Checked = False RadioButton31.Checked = False RadioButton32.Checked = False RadioButton33.Checked = False RadioButton34.Checked = False RadioButton35.Checked = False End Sub Private Sub sel_sem_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = MDIParent1 RadioButton1.Text = "MathematicsI" RadioButton2.Text = "Business Communication" RadioButton3.Text = "Programming with C" RadioButton4.Text = "FIT" RadioButton5.Text = "Basics of Physics" RadioButton6.Text = "General Proficiency I" RadioButton7.Text = "Mathematics II" RadioButton8.Text = "Business Org & Mgnt" RadioButton9.Text = "Digital Electronics" RadioButton10.Text = "Data Structures using C " RadioButton11.Text = "Database ManagementSystems" RadioButton12.Text = "General Proficiency II " RadioButton13.Text = "Mathematics III " RadioButton14.Text = "Computer Architecture" RadioButton15.Text = "Front End Design Tools " RadioButton16.Text = "Financial Accounting" RadioButton17.Text = "OOPs"

RadioButton18.Text RadioButton19.Text RadioButton20.Text RadioButton21.Text RadioButton22.Text RadioButton23.Text RadioButton24.Text RadioButton25.Text RadioButton26.Text RadioButton27.Text RadioButton28.Text RadioButton29.Text RadioButton30.Text RadioButton31.Text RadioButton32.Text RadioButton33.Text RadioButton34.Text RadioButton35.Text End Sub End Class

= = = = = = = = = = = = = = = = = =

"General Proficiency III " "Mathematics IV " "Software Engineering" "Java Programming" "Operating Systems" "Business Economics" "General Proficiency IV " "Computer Networks" ".net Programming" "Linux Environment" "CNS \ EC \ ADA" "Minor Project" "Seminar" "MIS" "Mobile Computing" "Computer Graphics" "IP \ KMNE" "Major Project"

Result.vb

Code:Imports System.Data.OleDb Public Class result Dim con As OleDb.OleDbConnection Dim cmd, cmd1 As OleDb.OleDbCommand Dim dr, dr1 As OleDb.OleDbDataReader Dim da, da1 As OleDb.OleDbDataAdapter Dim ds, ds1 As DataSet Dim inc As Integer = 0 Dim inc2 As Integer = 0 Dim a As Integer Sub connect() If TextBox2.Text = 1 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con.Open() Button2.Visible = True Label14.Visible = True Label20.Visible = True TextBox4.Visible = False TextBox3.Visible = False End If If TextBox2.Text = 2 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con.Open() Button4.Visible = True Label13.Visible = True Label19.Visible = True TextBox4.Visible = False TextBox3.Visible = False End If If TextBox2.Text = 3 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con.Open() Button5.Visible = True Label12.Visible = True Label18.Visible = True TextBox4.Visible = False TextBox3.Visible = False End If If TextBox2.Text = 4 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con.Open() Button6.Visible = True Label11.Visible = True Label17.Visible = True

TextBox4.Visible = False TextBox3.Visible = False End If If TextBox2.Text = 5 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con.Open() Button7.Visible = True Label10.Visible = True Label16.Visible = True End If If TextBox2.Text = 6 Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con.Open() Button8.Visible = True Label9.Visible = True Label15.Visible = True TextBox4.Visible = False TextBox3.Visible = False End If da = New OleDb.OleDbDataAdapter("select * from I_internals", con) ds = New DataSet da.Fill(ds) bindData() da1 = New OleDb.OleDbDataAdapter("select * from II_internals", con) ds1 = New DataSet da1.Fill(ds1) bindData2() End Sub Sub bindData() TextBox15.Text TextBox16.Text TextBox17.Text TextBox18.Text TextBox19.Text TextBox20.Text TextBox21.Text End Sub Sub bindData2() TextBox22.Text TextBox23.Text TextBox24.Text TextBox25.Text TextBox26.Text TextBox27.Text TextBox28.Text

= = = = = = =

ds.Tables(0).Rows(inc).Item(0) ds.Tables(0).Rows(inc).Item(1) ds.Tables(0).Rows(inc).Item(2) ds.Tables(0).Rows(inc).Item(3) ds.Tables(0).Rows(inc).Item(4) ds.Tables(0).Rows(inc).Item(5) ds.Tables(0).Rows(inc).Item(6)

= = = = = = =

ds1.Tables(0).Rows(inc2).Item(0) ds1.Tables(0).Rows(inc2).Item(1) ds1.Tables(0).Rows(inc2).Item(2) ds1.Tables(0).Rows(inc2).Item(3) ds1.Tables(0).Rows(inc2).Item(4) ds1.Tables(0).Rows(inc2).Item(5) ds1.Tables(0).Rows(inc2).Item(6)

End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click fac_opt.Show() Me.Hide() End Sub

Private Sub result_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = MDIParent1 End Sub Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click Button9.Enabled = False If TextBox5.Text = 2 Then TextBox17.Enabled = True TextBox24.Enabled = True ElseIf TextBox5.Text = 3 Then TextBox18.Enabled = True TextBox25.Enabled = True ElseIf TextBox5.Text = 4 Then TextBox19.Enabled = True TextBox26.Enabled = True ElseIf TextBox5.Text = 5 Then TextBox20.Enabled = True TextBox27.Enabled = True ElseIf TextBox5.Text = 6 Then TextBox21.Enabled = True TextBox28.Enabled = True ElseIf TextBox5.Text = 7 Then TextBox3.Enabled = True TextBox4.Enabled = True End If 'Label4.Text = TextBox1.Text connect() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then cmd = New OleDb.OleDbCommand("update I_internals set Enrollment_no='" & TextBox15.Text & "',Name='" & TextBox16.Text & "',Mathematics_I='" & TextBox17.Text & "',Business_Communication='" & TextBox18.Text & "',C='" & TextBox19.Text & "',FIT='" & TextBox20.Text & "',Physics='" & TextBox21.Text & "' where Enrollment_no='" & TextBox15.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() 'con.Close() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then cmd = New OleDbCommand("update II_internals set Enrollment_no='" & TextBox22.Text & "',Name='" & TextBox23.Text & "',Mathematics_I='" & TextBox24.Text & "',Business_Communication='" & TextBox25.Text & "',C='" & TextBox26.Text & "',FIT='" & TextBox27.Text & "', Physics='" & TextBox28.Text & "' where Enrollment_no='" & TextBox22.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() End If End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then

cmd = New OleDbCommand("update I_internals set Enrollment_no='" & TextBox15.Text & "',Name='" & TextBox16.Text & "',MathematicsII='" & TextBox17.Text & "',BOM='" & TextBox18.Text & "',DE='" & TextBox19.Text & "',DS='" & TextBox20.Text & "',DBMS='" & TextBox21.Text & "' where Enrollment_no='" & TextBox15.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then cmd = New OleDbCommand("update II_internals set Enrollment_no='" & TextBox22.Text & "',Name='" & TextBox23.Text & "',MathematicsII='" & TextBox24.Text & "',BOM='" & TextBox25.Text & "',DE='" & TextBox26.Text & "',DS='" & TextBox27.Text & "',DBMS='" & TextBox28.Text & "' where Enrollment_no='" & TextBox22.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() End If End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then cmd = New OleDbCommand("update I_internals set Enrollment_no='" & TextBox15.Text & "',Name='" & TextBox16.Text & "',Mathematics-III='" & TextBox17.Text & "',CA='" & TextBox18.Text & "' ,FEDT='" & TextBox19.Text & "',FA='" & TextBox20.Text & "' , OOPs='" & TextBox21.Text & "' where Enrollment_no='" & TextBox15.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then cmd = New OleDbCommand("update II_internals set Enrollment_no='" & TextBox22.Text & "',Name='" & TextBox23.Text & "',Mathematics-III='" & TextBox24.Text & "',CA='" & TextBox25.Text & "' ,FEDT='" & TextBox26.Text & "',FA='" & TextBox27.Text & "' , OOPs='" & TextBox28.Text & "' where Enrollment_no='" & TextBox22.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() End If End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then cmd = New OleDbCommand("update I_internals set Enrollment_no='" & TextBox15.Text & "',Name='" & TextBox16.Text & "',MathematicsIV='" & TextBox17.Text & "',SE='" & TextBox18.Text & "',JAVA='" & TextBox19.Text & "',OS='" & TextBox20.Text & "',BE='" & TextBox21.Text & "' where Enrollment_no='" & TextBox15.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then

cmd = New OleDbCommand("update II_internals set Enrollment_no='" & TextBox22.Text & "',Name='" & TextBox23.Text & "',MathematicsIV='" & TextBox24.Text & "',SE='" & TextBox25.Text & "',JAVA='" & TextBox26.Text & "',OS='" & TextBox27.Text & "',BE='" & TextBox28.Text & "' where Enrollment_no='" & TextBox22.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() End If End Sub

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then cmd = New OleDbCommand("update I_internals set Enrollment_no='" & TextBox15.Text & "',Name='" & TextBox16.Text & "',CN='" & TextBox17.Text & "', NET='" & TextBox18.Text & "' ,LINUX='" & TextBox19.Text & "' ,CNS_EC_ADA='" & TextBox20.Text & "',MINOR='" & TextBox21.Text & "' ,SEMINAR='" & TextBox3.Text & "' where Enrollment_no='" & TextBox15.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then cmd = New OleDbCommand("update II_internals set Enrollment_no='" & TextBox22.Text & "',Name='" & TextBox23.Text & "',CN='" & TextBox24.Text & "', NET='" & TextBox25.Text & "' ,LINUX='" & TextBox26.Text & "' ,CNS_EC_ADA='" & TextBox27.Text & "',MINOR='" & TextBox28.Text & "' ,SEMINAR='" & TextBox4.Text & "' where Enrollment_no='" & TextBox22.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() End If End Sub

Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then cmd = New OleDbCommand("update I_internals set Enrollment_no='" & TextBox15.Text & "',Name='" & TextBox16.Text & "',MIS='" & TextBox17.Text & "',MC='" & TextBox18.Text & "',CG='" & TextBox19.Text & "',IP_KMNE='" & TextBox20.Text & "' ,MAJOR='" & TextBox21.Text & "' where Enrollment_no='" & TextBox15.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then cmd = New OleDbCommand("update II_internals set Enrollment_no='" & TextBox22.Text & "',Name='" & TextBox23.Text & "',MIS='" & TextBox24.Text & "',MC='" & TextBox25.Text & "',CG='" & TextBox26.Text & "',IP_KMNE='" & TextBox27.Text & "' ,MAJOR='" & TextBox28.Text & "' where Enrollment_no='" & TextBox22.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully Update record", ic) con.Close()

End If End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If TabControl2.SelectedTab.Text = "Ist Internals" Then inc = ds.Tables(0).Rows.Count - 1 bindData() ElseIf TabControl2.SelectedTab.Text = "IInd Internals" Then inc2 = ds1.Tables(0).Rows.Count - 1 bindData2() End If End Sub End Class

Att_reg.vb

Code:Imports System.Data.OleDb Public Class att_reg Dim con As OleDb.OleDbConnection Dim cmd As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader Dim da As OleDb.OleDbDataAdapter Dim ds As DataSet Dim inc As Integer = 0 Dim a As Integer Sub connect() If TextBox5.Text = "1" Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con.Open() Select Case TextBox4.Text Case 2 Button4.Visible = True Case 3 Button5.Visible = True Case 4 Button6.Visible = True Case 5 Button7.Visible = True Case 6 Button8.Visible = True Case 7 Button9.Visible = True End Select End If If TextBox5.Text = "2" Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con.Open() Select Case TextBox4.Text Case 2 Button10.Visible = True Case 3 Button11.Visible = True Case 4 Button12.Visible = True Case 5 Button13.Visible = True Case 6 Button14.Visible = True Case 7 Button15.Visible = True End Select End If If TextBox5.Text = "3" Then

con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con.Open() Select Case TextBox4.Text Case 2 Button16.Visible = True Case 3 Button17.Visible = True Case 4 Button18.Visible = True Case 5 Button19.Visible = True Case 6 Button20.Visible = True Case 7 Button21.Visible = True End Select End If If TextBox5.Text = "4" Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con.Open() Select Case TextBox4.Text Case 2 Button22.Visible = True Case 3 Button23.Visible = True Case 4 Button24.Visible = True Case 5 Button25.Visible = True Case 6 Button26.Visible = True Case 7 Button27.Visible = True End Select End If If TextBox5.Text = "5" Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con.Open() Select Case TextBox4.Text Case 2 Button28.Visible = True Case 3 Button29.Visible = True Case 4 Button30.Visible = True Case 5 Button31.Visible = True Case 6 Button32.Visible = True Case 7 Button33.Visible = True End Select End If If TextBox5.Text = "6" Then con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb")

con.Open() Select Case TextBox4.Text Case 2 Button34.Visible = Case 3 Button35.Visible = Case 4 Button36.Visible = Case 5 Button37.Visible = Case 6 Button38.Visible =

True True True True True

End Select End If If TextBox7.Text = "" Then da = New OleDb.OleDbDataAdapter("select * ds = New DataSet da.Fill(ds) bindData() ElseIf TextBox7.Text = 1 Then TextBox8.Text = InputBox("Enter your full da = New OleDb.OleDbDataAdapter("select * TextBox8.Text & "'", con) ds = New DataSet da.Fill(ds) bindData() da = New OleDb.OleDbDataAdapter("select * ds = New DataSet da.Fill(ds) inc = ds.Tables(0).Rows.Count - 1 ElseIf TextBox7.Text = 2 Then TextBox9.Text = inc da = New OleDb.OleDbDataAdapter("select * ds = New DataSet da.Fill(ds) inc = Val(TextBox9.Text) TextBox7.Text = "" End If End Sub Sub bindData() TextBox1.Text = ds.Tables(0).Rows(inc).Item(0) TextBox2.Text = ds.Tables(0).Rows(inc).Item(1) TextBox3.Text = ds.Tables(0).Rows(inc).Item(2) End Sub Sub nex() Button1.Enabled = True Button2.Enabled = True edit_txt.Enabled = True If inc < ds.Tables(0).Rows.Count - 1 Then inc = inc + 1 bindData() ElseIf inc = ds.Tables(0).Rows.Count - 1 Then Button3.Enabled = False End If End Sub

from Attendence", con)

name :-") from Attendence where Name='" &

from Attendence", con)

from Attendence", con)

Private Sub exit_txt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exit_txt.Click

con.Close() sel_sem.TextBox4.Text = "" Me.Hide() End Sub Private Sub att_reg_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated 'Me.MdiParent = MDIParent1 Label6.Text = TextBox5.Text Label7.Text = TextBox6.Text Label5.Text = Date.Today() End Sub Private Sub att_reg_Deactivate(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Deactivate sel_sem.TextBox4.Text = "" End Sub Private Sub att_reg_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load connect() TextBox7.Text = "" End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox3.Text = Val(TextBox3.Text) + 1 Button1.Enabled = False End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If TextBox7.Text = "" Then TextBox3.Text = TextBox3.Text + 0 Button2.Enabled = False ElseIf TextBox7.Text = 1 Then TextBox3.Text = TextBox3.Text - 1 Button2.Enabled = False End If End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click cmd = New OleDbCommand("update Attendence set MathematicsI='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button5_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click cmd = New OleDbCommand("update Attendence set Business_Communication='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click cmd = New OleDbCommand("update Attendence set C='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click cmd = New OleDbCommand("update Attendence set FIT='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click cmd = New OleDbCommand("update Attendence set Physics='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click cmd = New OleDbCommand("update Attendence set GP='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click cmd = New OleDbCommand("update Attendence set MathematicsII='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click cmd = New OleDbCommand("update Attendence set BOM='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click cmd = New OleDbCommand("update Attendence set DE='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery()

nex() End Sub Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click cmd = New OleDbCommand("update Attendence set DS='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click cmd = New OleDbCommand("update Attendence set DBMS='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click cmd = New OleDbCommand("update Attendence set GP='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click cmd = New OleDbCommand("update Attendence set Mathematics-III='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click cmd = New OleDbCommand("update Attendence set CA='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click cmd = New OleDbCommand("update Attendence set FEDT='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button19.Click cmd = New OleDbCommand("update Attendence set FA='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con)

Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click cmd = New OleDbCommand("update Attendence set OOPs='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click cmd = New OleDbCommand("update Attendence set GP='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button22.Click cmd = New OleDbCommand("update Attendence set MathematicsIV='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button23.Click cmd = New OleDbCommand("update Attendence set SE='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button24.Click cmd = New OleDbCommand("update Attendence set JAVA='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button25.Click cmd = New OleDbCommand("update Attendence set OS='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click

cmd = New OleDbCommand("update Attendence where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex()

set

BE='" & TextBox3.Text & "'

End Sub Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button27.Click cmd = New OleDbCommand("update Attendence set GP='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click cmd = New OleDbCommand("update Attendence set CN='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button29.Click cmd = New OleDbCommand("update Attendence set NET='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button30.Click cmd = New OleDbCommand("update Attendence set LINUX='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button31.Click cmd = New OleDbCommand("update Attendence set CNS_EC_ADA='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button32.Click cmd = New OleDbCommand("update Attendence set MINOR='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub

Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button33.Click cmd = New OleDbCommand("update Attendence set SEMINAR='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button34.Click cmd = New OleDbCommand("update Attendence set MIS='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button35_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button35.Click cmd = New OleDbCommand("update Attendence set MC='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button36_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button36.Click cmd = New OleDbCommand("update Attendence set CG='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button37_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button37.Click cmd = New OleDbCommand("update Attendence set IP_KMNE='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click cmd = New OleDbCommand("update Attendence set MAJOR='" & TextBox3.Text & "' where Enrollment_no='" & TextBox1.Text & "'", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() nex() End Sub Private Sub edit_txt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles edit_txt.Click Button1.Enabled = True Button2.Enabled = True Button3.Enabled = True

TextBox7.Text = 2 connect() If inc > 0 Then inc = inc - 1 bindData() ElseIf inc = 0 Then edit_txt.Enabled = False End If End Sub Private Sub Button39_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button39.Click inc = 0 TextBox7.Text = 1 Button3.Enabled = False Button40.Visible = True connect() End Sub Private Sub Button40_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button40.Click Button3.Enabled = True If inc > 0 Then inc = inc - 1 bindData() ElseIf inc = 0 Then edit_txt.Enabled = False End If Button40.Visible = False End Sub Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click Button1.Enabled = True Button2.Enabled = True edit_txt.Enabled = True TextBox7.Text = 2 connect() If inc < ds.Tables(0).Rows.Count - 1 Then inc = inc + 1 bindData() ElseIf inc = ds.Tables(0).Rows.Count - 1 Then Button3.Enabled = False End If End Sub End Class

Admin.vb

Code:Public Class admin Dim ad_std As New add_std Dim ad_fac As New add_fac Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If RadioButton1.Checked = True Then ad_std.Show() ElseIf RadioButton4.Checked = True Then ad_fac.Show() End If Me.Hide() End Sub Private Sub admin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = MDIParent1 End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub End Class

Add_std.vb

Code:Imports System.Data.OleDb Public Class add_std Dim con, con1, con2, con3 As OleDb.OleDbConnection Dim cmd, cmd1, cmd2, cmd3 As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader Dim nam As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = TextBox2.Text nam = TextBox3.Text con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Baisc_Details.mdb") Try con.Open() cmd = New OleDbCommand("insert into Student values('" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" & TextBox8.Text & "','" & TextBox1.Text & "','" & TextBox9.Text & "','" & TextBox10.Text & "')", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox(nam + "" + ": Successfully added in he database") Catch ex As Exception MessageBox.Show(ex.Message) End Try con.Close() If TextBox8.Text = "1" Then con1 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con1.Open() cmd1 = New OleDbCommand("insert into Attendence values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con1) Dim ic As Integer ic = cmd1.ExecuteNonQuery() con2 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con2.Open() cmd2 = New OleDbCommand("insert into I_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con2) ic = cmd2.ExecuteNonQuery() con3 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester I.mdb") con3.Open() cmd3 = New OleDbCommand("insert into II_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con3) ic = cmd3.ExecuteNonQuery() End If If TextBox8.Text = "2" Then

con1 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con1.Open() cmd1 = New OleDbCommand("insert into Attendence values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con1) Dim ic As Integer ic = cmd1.ExecuteNonQuery() con2 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con2.Open() cmd2 = New OleDbCommand("insert into I_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con2) ic = cmd2.ExecuteNonQuery() con3 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester II.mdb") con3.Open() cmd3 = New OleDbCommand("insert into II_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con3) ic = cmd3.ExecuteNonQuery() End If If TextBox8.Text = "3" Then con1 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con1.Open() cmd1 = New OleDbCommand("insert into Attendence values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con1) Dim ic As Integer ic = cmd1.ExecuteNonQuery() con2 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con2.Open() cmd2 = New OleDbCommand("insert into I_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con2) ic = cmd2.ExecuteNonQuery() con3 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester III.mdb") con3.Open() cmd3 = New OleDbCommand("insert into II_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con3) ic = cmd3.ExecuteNonQuery() End If If TextBox8.Text = "4" Then con1 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con1.Open() cmd1 = New OleDbCommand("insert into Attendence values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con1) Dim ic As Integer ic = cmd1.ExecuteNonQuery() con2 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con2.Open() cmd2 = New OleDbCommand("insert into I_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con2) ic = cmd2.ExecuteNonQuery()

con3 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester IV.mdb") con3.Open() cmd3 = New OleDbCommand("insert into II_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con3) ic = cmd3.ExecuteNonQuery() End If If TextBox8.Text = "5" Then con1 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con1.Open() cmd1 = New OleDbCommand("insert into Attendence values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con1) Dim ic As Integer ic = cmd1.ExecuteNonQuery() con2 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con2.Open() cmd2 = New OleDbCommand("insert into I_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con2) ic = cmd2.ExecuteNonQuery() con3 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester V.mdb") con3.Open() cmd3 = New OleDbCommand("insert into II_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con3) ic = cmd3.ExecuteNonQuery() End If If TextBox8.Text = "6" Then con1 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con1.Open() cmd1 = New OleDbCommand("insert into Attendence values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con1) Dim ic As Integer ic = cmd1.ExecuteNonQuery() con2 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con2.Open() cmd2 = New OleDbCommand("insert into I_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con2) ic = cmd2.ExecuteNonQuery() con3 = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Semester VI.mdb") con3.Open() cmd3 = New OleDbCommand("insert into II_internals values('" & TextBox2.Text & "','" & TextBox3.Text & "','0','0','0','0','0','0')", con3) ic = cmd3.ExecuteNonQuery() End If End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click admin.Show() Me.Close() End Sub Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged TextBox10.Text = DateTimePicker1.Value TextBox7.Text = DateTimePicker1.Value.Year End Sub End Class

Add_fac.vb

Code:Imports System.Data.OleDb Public Class add_fac Dim con As OleDb.OleDbConnection Dim cmd As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\student\Baisc_Details.mdb") Try con.Open() cmd = New OleDbCommand("insert into Faculty values('" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" & TextBox8.Text & "','" & TextBox1.Text & "','" & TextBox9.Text & "')", con) Dim ic As Integer ic = cmd.ExecuteNonQuery() MsgBox("Successfully record save") Catch ex As Exception MessageBox.Show(ex.Message) End Try con.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click admin.Show() Me.Close() End Sub Private Sub add_std_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = MDIParent1 End Sub End Class ***************************************END*******************************************

Outputs :-

Form1.vb

Login.vb

Std_detail.vb

Fac_opt.vb

Sel_sem

result.vb

Att_reg

admin

Add_std

Add_fac

TESTING
Since it is not a very big project so any formal test strategy has not been Formed however every unit of program has been tested by white box testing. Following different test has been conducted: Interface: - To ensure that information properly flows into and out of the Program unit under Test. Some drivers and stubs have been made to serve this purpose. Like while testing servlets we have made drivers and stubs to test the proper functioning of servlets. Local Data Structure: - Data stored temporarily maintains its integrity. Since object oriented approach has been followed so data integrity is easy to maintain and data is less prone to any unwanted change. Boundary Conditions:- Program operates properly at boundary conditions. Like in User module when user gets questions he/she has been provided a set of questions. He/she has an input box and entering a question no in that box user can switch to that particular question. After unit testing we have found out if he/she enters a no., which is exceeding the total questions available then error could be generated so the provisions has been made to handle that expected error conditioned.

Independent paths: - Independent paths tested to ensure that all statements get executed at least once. Error handling paths: - Error handling paths are tested to make sure that they work properly. Since each component has been unit tested after coding. After components has been coded and tested, we have started integration of the various related components together. Integration testing has been done using incremental approach. Few components has been integrated then other components has been added to them. While following incremental approach a mix of top-down and bottom-up has been followed. After completing integration testing we have done validation testing to meet the conformity between requirement and the system.

DEBUGGING
The subsequent step of testing is debugging. Once we find bugs after testing the next step is to remove the bug i.e. debugs. For debugging back-tracking is commonly used. Some time hit and trial is also followed. Like once we have made a Access table for storing the subjects available for the exam and time associated with it. We have assigned column name And Various no of fields and have seen that there is no problem in it. We have accessed this database after manually filling values in the database no problem at all. But then we have tried to fill the database using a forms, database error has been generated, and we were clue less by analyzing the error. So we have decided to go for hit and trial approach. And finally we have found out that the problem was due to the column name username because the Access has a data type named as time. So when we have replaced the name username, every thing was o.k...Cause elimination method has been followed especially debugging forms communication.

IMPLEMENTATION
Since the project was to aid in the fulfillment of institutes plan. So the final implementation of the project would be taken place only when institute would execute its plan. As of now the execution of institutes plan seem to be round the corner. However project has been implemented for the testing and validation purpose.

SCOPE AND FLEXIBILITY OF THE PROJECT


However the project has been developed in the window based platform but it would work efficiently in UNIX based platform as well. The system fabricated is a generalized type, by making some small changes it can be made fit in other organizations requirement especially organization and institutions dealing with education.

SUGGESTION AND RECOMMENDATIONS


After getting experience by working in the above project I suggest while developing such application using .NET technologies if heavy data (like contain images and audio) are to be used then a more powerful machine should be used to run the application. I suggest the the user interface should be much more appealing by using audio and animations. This I would be using in my future projects.

OBSERVATIONS
Now I would like to share some observations made during project. First and foremost thing, which I have observed that determination and hard work would make us, finished the tasks effectively, which were looking very tough at a particular point of time. Conducive environment, supportive team members and guiding management makes best to come out of you. I was working on this project with my friend. I have got extreme cooperation from his side. Mr. Varun Tiwari our Project coordinator has given us full help in understanding the concepts. Environment was very friendly out there.

REFERENCES
1. Introducing the .NET framework by Bill Wagner 2. Using Visual Studio by Jesse Liberty 3. Your interface is Awesome by Dick Oliver. 4. Internet resources: http://www.devhood./ com/ http://www.google.com http://www.wikipedia.com

Vous aimerez peut-être aussi