Practical File Contents
Practical File Contents
Practical File Contents
Of
DBMS and VB.NET
(Paper - PCA09 and PCA10)
Gupta(3487),Rinki (3542)
Assistant Professor
2
INDEX
Sr.No Content Page No.
1 DBMS 4-6
2 RDBMS 7-10
3 Oracle 11-12
4 SQL 13-15
5 PL/SQL 16-18
13 Objectives 32
14 Splash Screen 33
16 MDI Form 35
17 Calculator 36
3
25 Coding for data grid 54
4
DBMS
Database Management System (DBMS) is a software for storing and retrieving users' data
while considering appropriate security measures. It consists of a group of programs which
manipulate the database. The DBMS accepts the request for data from an application and
instructs the operating system to provide the specific data. In large systems, a DBMS helps
users and other third-party software to store and retrieve data.
DBMS allows users to create their own databases as per their requirement. The term
“DBMS” includes the user of the database and other application programs. It provides an
interface between the data and the software application.
Advantages of DBMS
Disadvantage of DBMS
Cost of Hardware and Software of a DBMS is quite high which increases the budget
of your organization.
Most database management systems are often complex systems, so the training for
users to use the DBMS is required.
5
In some organizations, all data is integrated into a single database which can be
damaged because of electric failure or database is corrupted on the storage media
Use of the same program at a time by many users sometimes lead to the loss of some
data.
DBMS can't perform sophisticated calculations
Application of DBMS
6
The functionality provided by a DBMS can vary enormously. The core functionality is the
storage, retrieval and update of data. Codd proposed the following functions and services a
fully-fledged general purpose DBMS should provide
7
RDBMS
A relational database is a type of database. It uses a structure that allows us to identify and
access data in relation to another piece of data in the database. Often, data in a relational
database is organized into tables.
Initial Setup
Setting up a DBMS, optimizing it for ideal operations, and future-proofing it for growth
requires adequate flexibility for integration into the current data infrastructure.
Synchronization with other platforms is also essential for uninterrupted workflow.
security
Every DBMS will provide different security methods, like encryption, customizable routines,
and access rights, to protect your data. These should all be carefully considered during the
evaluation process. You probably want access controls like authorization and authentication
to be default features, meaning data in tables within a RDBMS is limited to access by specific
users.
model
How will you tell which model is right for your data? If you need to work with unstructured
data, then a relational model won’t work. NoSQL databases are often available as open
source, whereas a RBDMS is usually a commercial purchase.
accuracy/reliability
Some of the questions you will be asking yourself here are your accuracy requirements, and
whether to rely on business logic. Financial data and government reports, for example, will
have more stringent requirements.
If you want to design a data storage system that makes it easy to manage lots of information,
and is scalable and flexible, a relational database is a good bet.
Manageability: For starters, an RDB is easy to manipulate. Each table of data can be
updated without disrupting the others.
You can also share certain sets of data with one group, but limit their access to other
groups – for example, allowing only the HR department to see confidential
information about employees.
Flexibility: If you need to update your data, you only have to do it once – no more
having to change multiple files one at a time. And it’s pretty simple to extend your
8
database. If your records are growing, a relational database is easily scalable to grow
with your data.
Avoid Errors: There’s no room for mistakes in a relational database because it’s easy
to check for mistakes against data in other parts of the records. And since each piece
of information is stored at a single point, you don’t have the problem of old versions
clouding the picture.
Scalability: Relational databases are built on a single server. This means in order to
scale, you’ll need to purchase more expensive hardware with more power, storage,
and memory.
Performance: Rapid growth in volume, velocity, variety, and complexity of data
creates even more complicated relationships. Relational databases tend to have a hard
time keeping up, which can slow down performance.
Relationships: Relational databases don’t actually store relationships between
elements, which makes understanding connections between your data reliant on other
joins.
Advantages:
Data structure:
As discussed, the table format can be easily understood by the users, which makes it simpler
for them to use it. The data access and data organization are arranged using a natural
structure. Matching entries can be located with ease using database queries.
An RDBMS comprises a software program, server daemon, which has been specifically
designed to capture requests sent over a network, facilitating the communication between
database clients and the database. Here the users are not required to log in to the computer
9
system to access or use the database. This facilitates the users with a convenience and a
security layer for your database. Developers utilize this network access facility to create
desktop tools and web apps to interact with databases.
Language:
Though RDBMS does not account as the fastest known database management system
structure, since it offers a number of features, such as ease and simplicity, speed is
automatically overridden. There are a variety of optimizations that have been planted into the
RDBMS along with the database design that further helps in performance enhancement,
thereby facilitating the RDBMS to perform faster for all applications and data sets.
Technological enhancements, decrease in memory and storage costs, and increase in
processor speeds are some of the factors that contribute to helping the technicians build faster
systems for covering up deficiencies in the performance of the database systems.
Maintenance
As already discussed, the user access is multiple. So, more than one user can access one
database at the same time. As the data is being updated or changed, users can utilize the built-
in locking and transactions management functionality to access the data . This mainly helps in
10
overcoming any possible crashes between more than one users working on the data and
prevents users from accessing or using data that has been partially updated.
Privileges
With the authorization and privilege control features in an RDBMS, it is possible for the
database administrator to stop any access requested by authorized users. But permissions can
be assigned to individual users taking into account the database activities they are intended to
handle or undertake. This authorization is determined depending on the remote client IP
address, which is combined with user authorization, which restricts access to selected
computer systems.
Disadvantages
Cost
The expense of maintaining and even setting up a database system is relatively high and one
of the drawbacks of relational databases. A special software is required for setting up a
relational database and this could cost a fortune. For non-programmers, they would need to
implement a number of products to set up this database. It might not be an easy task to update
all the information and finally get the program running. For large firms with a need for a
more vigorous database, it would be imperative that you get external help from an
experienced programmer to build a relational database implementing SQL. Also, you would
need to get a proficient and experienced relational database administrator to manage and
control this database. No matter what data you use, it is required that you ingress it from
other databases, including Excel spreadsheets or text files. But you can also enter the data via
the keyboard. If you intend to store highly confidential information, 2 it is required that you
secure your data against any kind of unauthorized access.
11
ORACLE
Oracle Database allows you to quickly and safely store and retrieve data. Here are the
integration benefits of the Oracle Database:
Logical data structure – Oracle uses the logical data structure to store data so that you
can interact with the database without knowing where the data is stored physically.
Partitioning – is a high-performance feature that allows you to divide a large table into
different pieces and store each piece across storage devices.
Memory caching – the memory caching architecture allows you to scale up a very large
database that still can perform at a high speed.
Data Dictionary is a set of internal tables and views that support administer Oracle
Database more effectively.
Backup and recovery – ensure the integrity of the data in case of system failure. Oracle
includes a powerful tool called Recovery Manager (RMAN) – allows DBA to perform
cold, hot, and incremental database backups and point-in-time recoveries.
Clustering – Oracle Real Application Clusters (RAC) – Oracle enables high availability
that enables the system is up and running without interruption of services in case one or
more server in a cluster fails.
1) Enterprise Edition (EE) is the common and expensive edition of the Oracle Database. It
has the following characteristics:
2) Standard Edition (SE) is a limited edition of the Enterprise Edition that has the following
characteristics:
12
Limited to four or fewer CPUs
No limit on memory or database size
Include many features, but no as many as EE
3) Expression Edition (XE) is a free-to-use version of the Oracle Database that available on
both Windows and GNU/Linux platforms. These are the features of Oracle Database XE 18c:
Limited to 2 CPUs
Can use the maximum of 2GB of RAM, and has 12GB of user data.
Very limited features
Oracle Database (Oracle DB) is a relational database management system (RDBMS) from
Oracle Corporation.
Businesses require scalable, high-performance databases now more than ever. Many leverage
Oracle DB to drive business applications for online transaction processing (OLTP), data
warehousing, and business analytics. IT teams also need on-demand performance from these
13
SQL
SQL stands for Structured Query Language. It is designed for managing data in a relational
database management system (RDBMS). It is pronounced as S-Q-L or sometime See-
Qwell. SQL is a database language, it is used for database creation, deletion, fetching rows,
and modifying rows, etc. SQL can be used to share and manage data, particularly data that is
found in relational database management systems, which include data organized into tables.
Multiple files, each containing tables of data, also may be related together by a common field.
Using SQL, you can query, update, and reorganize data, as well as create and modify the
schema (structure) of a database system and control access to its data.
A lot of nformation can be compiled in a spreadsheet such as Microsoft Excel, but SQL is
intended to compile and manage data in much greater volumes. While spreadsheets can
become cumbersome with too much information, SQL databases can handle millions, or even
billions, of cells of data.
Common software used for SQL servers includes Oracle's MySQL, perhaps the most popular
program for managing SQL databases. MySQL is open-source software, which means it is
free to use and is important for web developers because so much of the web and so many
applications are built on databases.
SQL Process
When you are executing an SQL command for any RDBMS, the system determines the best
way to carry out your request and SQL engine figures out how to interpret the task.
There are various components included in this process.
These components are −
Query Dispatcher
Optimization Engines
Classic Query Engine
SQL Query Engine, etc.
A classic query engine handles all the non-SQL queries, but a SQL query engine won't
handle logical files.
Following is a simple diagram showing the SQL Architecture −
14
SQL Commands
The standard SQL commands to interact with relational databases are CREATE, SELECT,
INSERT, UPDATE, DELETE and DROP. These commands can be classified into the
following groups based on their nature −
1 CREATE
Creates a new table, a view of a table, or other object in the database.
2 ALTER
Modifies an existing database object, such as a table.
3 DROP
Deletes an entire table, a view of a table or other objects in the database.
15
DML - Data Manipulation Language
1 SELECT
Retrieves certain records from one or more tables.
2 INSERT
Creates a record.
3 UPDATE
Modifies records.
4 DELETE
Deletes records.
1 GRANT
Gives a privilege to user.
2 REVOKE
Takes back privileges granted from user.
16
PL\SQL
PL/SQL Developer is an Integrated Development Environment that is specifically targeted at
the development of stored program units for Oracle Databases. Over time we have seen more
and more business logic and application logic move into the Oracle Server, so that PL/SQL
programming has become a significant part of the total development process. PL/SQL
Developer focuses on ease of use, code quality and productivity, key advantages during
Oracle application development.
Integrated Debugger
The integrated debugger offers all features you could wish for: Step In, Step Over, Step Out,
Run Until Exception, Breakpoints, View & Set Variables, View Call Stack, and so on. You
can debug any program unit without making any modification to it, including triggers and
object types.
PL/SQL Beautifier
The PL/SQL Beautifier allows you to format your SQL and PL/SQL code through a user-
defined set of rules. Your code can automatically be beautified when you compile, save, or
open a file. This feature will increase your coding productivity and will improve the
readability of your PL/SQL code if you are working in large project teams.
SQL Window
The SQL Window allows you to enter any SQL statement or multiple statements and view or
edit the results in a grid. The result grid supports a Query By Example mode to search
specific records in a result set. You can easily recall previously executed SQL statements
from a history buffer. The SQL editor provides the same powerful features as the PL/SQL
Editor.
Command Window
To develop and execute SQL scripts you can use PL/SQL Developer’s Command Window.
This window has the same look and feel as SQL*Plus, and additionally has a built-in script
editor with corresponding syntax highlighting. Now you can develop your scripts without the
“edit script / save it / switch to SQL*Plus / run script” cycle, and without leaving the
comfortable PL/SQL Developer IDE.
17
Regression Testing
For regression testing you can use PL/SQL Developer’s built-in Test Manager. You can
define and run a Test Set, and quickly determine if all tests run correctly. In case of an error,
the Test Manager can launch the Debugger to investigate the cause of the error. You can run
Test Sets from the Command Window for automated regression testing
To-Do Items
You can use To-Do Items in any SQL or PL/SQL source file to make a quick note that
something needs to be done in this source file. You can access this information later from the
To-Do List, either at the object level or at the project level.
Object Browser
This configurable tree-view displays all information that is relevant to PL/SQL development.
Use it to get object descriptions, to view object definitions, to create test scripts for the
debugger, to enable and disable triggers and constraints, to recompile invalid objects, to
query or edit tables or view data, to search for text in object sources, to drag and drop object
names into an editor, and so on.
The Object Browser additionally displays dependencies among objects, and lets you
recursively expand these dependant objects (e.g. package references view, view references
table, super/subtypes, and son on).
Architecture of PL/SQL
1. PL/SQL Block
2. PL/SQL Engine
3. Database Server
PL/SQL block:
18
o Anonymous Block
o Function
o Library
o Procedure
o Package Body
o Package Specification
o Trigger
o Type
o Type Body
Disadvantages of PL/SQL
PL/SQL Engine
PL/SQL engine is the component where the actual processing of the codes takes
place.
PL/SQL engine separates PL/SQL units and SQL part in the input (as shown in the
image below).
The separated PL/SQL units will be handled by the PL/SQL engine itself.
The SQL part will be sent to database server where the actual interaction with
database takes place.
It can be installed in both database server and in the application server.
Database Server:
This is the most important component of Pl/SQL unit which stores the data.
The PL/SQL engine uses the SQL from PL/SQL units to interact with the database
server.
It consists of SQL executor which parses the input SQL statements and execute the
same.
19
INTRODUCTION TO VB.NET
This means that it supports the features of object-oriented programming which include
encapsulation, polymorphism, abstraction, and inheritance.
Visual Basic .ASP NET runs on the .NET framework, which means that it has full access to
the .NET libraries. It is a very productive tool for rapid creation of a wide range of Web,
Windows, Office, and Mobile applications that have been built on the .NET framework.
The language was designed in such a way that it is easy to understand to both novice and
advanced programmers. Since VB.NET relies on the .NET framework, programs written in
the language run with much reliability and scalability. With VB.NET, you can create
applications that are fully object-oriented, similar to the ones created in other languages like
C++, Java, or C#. Programs written in VB.NET can also interoperate well with programs
written in Visual C++, Visual C#, and Visual J#. VB.NET treats everything as an object.
VB.NET Features
VB.NET comes loaded with numerous features that have made it a popular programming
language amongst programmers worldwide. These features include the following:
VB.NET is not case sensitive like other languages such as C++ and Java.
It is an object-oriented programming language. It treats everything as an object.
Automatic code formatting, XML designer, improved object browser etc.
Garbage collection is automated.
Support for Boolean conditions for decision making.
Simple multithreading, allowing your apps to deal with multiple tasks simultaneously.
Simple generics.
A standard library.
Events management.
References. You should reference an external object that is to be used in a VB.NET
application.
Attributes, which are tags for providing additional information regarding elements
that have been defined within a program.
Windows Forms- you can inherit your form from an already existing form.
Advantages of VB.NET
The following are the pros/benefits you will enjoy for coding in VB.NET:
20
You can create web applications with modern features like performance counters,
event logs, and file system.
You can create your web forms with much ease through the visual forms designer.
You will also enjoy drag and drop capability to replace any elements that you may
need.
You can connect your applications to other applications created in languages that run
on the .NET framework.
You will enjoy features like docking, automatic control anchoring, and in-place menu
editor all good for developing web applications.
Disadvantages of VB.NET
21
INTRODUCTION TO VISUAL STUDIO
In VB 6, you can create any program depending on your objective. For math teachers, you
can create mathematical programs such as Geometric Progression, Quadratic Equation
Solver, Simultaneous Equation Solver ,Prime Number Tester, Factors Finder, Quadratic
Function Graph Plotter and so on. For science teachers, you can create simulation programs
such as Projectile, Simple Harmonic Motion, Star War etc. If you are in business, you can
also create business applications such as inventory management system , Amortization
Calculator , investments calculator, point-of-sale system, payroll system, accounting program
and more to help manage your business and increase productivity. For those of you who like
games , you can create programs such as slot machine, reversi, tic tac toe and more. Besides,
you can create multimedia programs such as Smart Audio Player, Multimedia Player and
more. Indeed, there is no limit to what program you can create ! We offer many sample
codes in our tutorial.
Before you can write programs in VB 6, you need to install Visual Basic 6 compiler on your
computer. You can purchase a copy of Microsoft Visual Basic 6.0 Learning Edition
or Microsoft Visual Basic Professional Edition from Amazon.com, both are vb6
compilers. Besides, you can also buy it from eBay at Microsoft Visual Basic 6.0 6
Professional PRO MSDN Library Manual Service Pack. If you have already installed
Microsoft Office in your PC or laptop, you can also use the built-in Visual Basic Application
in Excel to start creating Visual Basic programs without having to spend extra cash to buy the
VB6 compiler.
You can also install VB6 on Windows 10 but you need to follow certain steps otherwise the
installation will fail. First, you need to run setup as administrator. Next, you need to use
custom installation. Clear the checkbox for Data Access. If you don't, set up will hang at the
end of the installation. Finally, click next and wait for the installation to complete. For
complete instructions, please follow this link Install VB6 on Windows 10
After installing the vb6 compiler, the icon will appear on your desktop or in your programs
menu. Click on the icon to launch the VB6 compiler. On start up, Visual Basic 6.0 will
display the following dialog box .
22
You can choose to either start a new project, open an existing project or select a list of
recently opened programs. A project is a collection of files that make up your application.
There are various types of applications that we could create, however, we shall concentrate
on creating Standard EXE programs (EXE means executable). Before you begin, you must
think of an application that preferably have commercial ,educational or recreational value.
Next, click on the Standard EXE icon to go into the actual Visual Basic 6 programming
environment.
When you start a new Visual Basic 6 Standard EXE project, you will be presented with the
Visual Basic 6 Integrated Development Environment (IDE). The Visual Basic 6 Integrated
Programming Environment is shown in Figure 1.2. It consists of the toolbox, the form, the
project explorer and the properties window.
The Form is the primary building block of a Visual Basic 6 application. A Visual Basic 6
application can actually comprise many forms, but we shall focus on developing an
application with one form first. We will learn how to develop applications with multiple
forms later. Before you proceed to build the application, it is a good practice to save the
project first. You can save the project by selecting Save Project from the File menu, assign a
name to your project and save it in a certain folder.
23
FEATURES OF VISUAL STUDIO
Code editor. Microsoft Visual Studio, like any other IDE, includes a code editor that
supports syntax highlighting and code completion using IntelliSense for variables, functions,
methods, loops, and LINQ queries. ...
Debugger. ...
Designer. ...
Other tools. ...
Extensibility. ...
Previous products. ...
Community. ...
Professional.
Visual Studio IDE is a comprehensive development platform for cloud, web and multiple
operating systems. It provides users with a smooth interface that is easy to navigate, allowing
for faster and more accurate coding. Developers will have access to a range of debugging
tools which facilitates in diagnosing and profiling bugs. This would give programmers the
confidence of deploying their applications because they know that they’ve got a set of tools
which monitors any troubles that might cause performance errors. Furthermore, Visual Studio
IDE functions as a testing platform too. The IDE can be used to simulate how applications
will run in their selected environments. This is for ensuring that once the application is
deployed, it will run smoothly as tested.
Microsoft visual studio provides with Integrated Development Environment (IDE) to develop
windows form applications with ease. It consists of various tools and windows, which
provides the user friendly environment, and make development easy, fast and efficient.
Windows forms is a powerful and high performance functionality (or framework) offered by
the Microsoft Windows application development, based on .NET framework. This
framework provides a clear, object-oriented, extensible set of classes that enable you to
develop rich windows applications. Windows forms applications can take advantage of
controls, menus, mouse and keyboard events, and can talk directly to the underlying
operating system. These applications are easy to use and understand.
In Windows Forms namespace which are used to create windows forms applications. These
classes are collectively known as the Windows Forms classes There is a Form class provided
by this namespace, is used as a base class for all dialog boxes and top-level windows in
a .NET windows application. System.Windows.Forns namespace also includes classes that
manage controls, menus, toolbars, data, components, printing and reporting etc.
Microsoft .net was formerly (in earlier times) known as Next Generation Windows Services
(NGWS). This is a platform for developing the next generation of windows/web applications.
These applications would transcend device boundaries and fully harness the power of the
interest.
24
INTRODUCTION TO ADO.NET
All the ADO.NET classes are located into System.Data.dll and integrated with XML classes
located into System.Xml.dll.
ADO.NET has two main components that are used for accessing and manipulating data are
the .NET Framework data provider and the DataSet.
Properties Description
CaseSensitive Indicates whether string comparisons within the data tables are case-
sensitive.
EnforceConstraints Indicates whether constraint rules are followed when attempting any
update operation.
Events Gets the list of event handlers that are attached to this component.
25
ExtendedProperties Gets the collection of customized user information associated with the
DataSet.
Locale Gets or sets the locale information used to compare strings within the
table.
Prefix Gets or sets an XML prefix that aliases the namespace of the DataSet.
26
ADO.NET provides a bridge between the front end controls and the back end database. The
ADO.NET objects encapsulate all the data access operations and the controls interact with
these objects to display data, thus hiding the details of movement of data.
The following figure shows the ADO.NET objects at a glance:
27
INTRODUCTION TO MS-ACCESS
Microsoft Access is a type of database software that is used to store information for reporting,
referencing and analysis. With Microsoft Access, you can analyze large amounts of data
faster and more efficiently than with Excel or other types of spreadsheets.
If you’ve been considering a database application for your business, or you’re finding that
traditional spreadsheets just aren’t cutting it anymore, Microsoft Access may be just what
you’re looking for.
Let’s explore some of the basic functions of Access and how they can help your business be
more productive.
Microsoft Access (MS Access) enables one to manage all important information from a
single database file. Within the file, one can use:
In MS Access, data is stored once in one table, but can be viewed from multiple locations.
When the data is updated in a Table, Query or Form, it is automatically updated everywhere
it appears
A database should have a separate table for every major subject, such as pedigree records,
Production data or Treatment information. Data should not be duplicated in multiple tables.
Microsoft Access provides three methods to create a database „ Database Wizard (though
easy, the wizard offers limited options to customize the database)
„ Using a template (This method works best if one can find and use a template that closely
matches the specific requirements) „. Creating a database directly (This is the most flexible
method, but it requires one to define each database element separately).
Access is most popular for its tables, forms and queries. The database tables are similar to
spreadsheets, so you shouldn’t have much trouble using the basic functions of the program.
However, it does take time to learn the full features.
When setting up a database, you may list the subject matter of each column, just as you
would with a spreadsheet, and add as many columns as you’d like. When this is completed,
each row leaves room for more data input.
One feature that users really like is that they don’t need to finalize the tables manually. Also,
Access has a query function that allows information to be combined from more than one
28
table, and you can even specify the conditions. This saves a lot of time because you don’t
have to look through rows and rows of information.
If you’re already using a spreadsheet application like Excel, you’re familiar with the benefits
of organizing your data. But let’s look further into some of the specific tasks that you can
perform with Access.
Maintain all information for each client or customer, including addresses, invoices, payment
and order information.
Track financial data without needing a separate software program. If you have the full
Microsoft Office Suite, you may even set payment reminders.
Manage marketing and sales thanks to having all customer information in the database. Send
out flyers, emails and coupons and track how customers respond.
Track production and inventory by entering data on shipments and also knowing when it’s
time to order more of a particular product.
Advantages of MS Access
Now in this MS Access Tutorial, we will learn the pros/benefits for using MS Access
application:
Disadvantages of MS Access
29
HARDWARE AND SOFTWARE REQUIREMENTS
Hardware Requirements
The following minimum configuration is required:
Processor: Must be at least the minimum specified for the operating system you are
using and for Visual Studio.
Memory: Must be at least the minimum specified for the operating system you are
using.
Disk space:
1.2Gb for reUZE Developer
600Mb for reUZE Server.
This disk size includes the space needed to cache information locally so that you can
modify the installation without the original source media.
DVD drive (either locally or via a network).
Screen with resolution of 800x600 with 256 colors minimum. Preferred screen
resolution 1024 x 768 or higher.
reUZE Developer has additional hardware requirements the same as for Microsoft
Visual Studio. See the Visual Studio documentation for details.
Software Requirements
The following software is required:
On 32-bit Windows, one of:
Windows Vista
Windows Server 2008
Windows Server 2003 R2, Windows Server 2003
Windows XP Professional SP2 or later
On 64-bit Windows for X64, one of:
Windows Vista
Windows Server 2008
Windows Server 2003
Windows XP Professional
Microsoft Visual Studio 2008 Service Pack 1 or Microsoft Visual Studio Shell 2008.
Note that Microsoft Visual Studio Express Edition is not supported.
30
Microsoft Windows SDK is required if you are using Visual Studio Shell 2008. See
the Microsoft Download site and search for Windows SDK.
Microsoft .NET Framework 3.5. This is included with the above versions of Visual
Studio.
The Java Development Kit (JDK) is required for compiling Java. The JDK is
downloadable from the Sun Web site. After installing the JDK, you must put
the tools.jar file for the JDK on your classpath, using a command similar to:
set classpath=jdk-install-directory\lib\tools.jar
A Web browser, such as Microsoft Internet Explorer 6.0 or Netscape Navigator 6.1.,
is required for Enterprise Server Administration in reUZE Server.
To use Enterprise Server Administration, scripting or JavaScript support must be
enabled in your browser. This is on by default in Internet Explorer in most Windows
operating systems, apart from Windows 2003. Also, active content must be allowed
and not blocked. To enable both these in Internet Explorer:
1. Click Tools > Internet Options.
2. On the Security tab, click Custom Level. In the Scripting section,
under Active Scripting, click Enable.
3. On the Advanced tab, scroll down the list to the Security section, and ensure
the item Allow active content to run in files on My Computer is checked.
Enterprise Server Help requires the Sun Java Run-time Environment on some
Windows systems to enable the Search facility to work. See Third Party Software
Disk space: 516Mb for a minimum installation of the Net Express IDE only.
Microsoft Visual Studio 2008 is required for using the Interface Mapping Toolkit to
generate Windows Forms and Web Forms test clients for service interfaces.
Microsoft Internet Information Service (IIS) is also required for generating Windows
Forms test clients.
The Microsoft .NET Framework 2.0 or later is required for the CTF Viewer. It is
available from the Microsoft .NET downloads area.
Required browsers:
1. Microsoft Internet Explorer 6.0 SP1 or later is required to enable Form
Designer to run.
2. You need a Web browser for testing your Web applications:
If you use Netscape Navigator, you need version 3 or later.
If you use Netscape Navigator 6, only v6.2 is supported.
If you use Microsoft Internet Explorer, V5.0 is adequate.
31
INTRODUCTION TO PROJECT
In Visual Basic, a project is the group of all the files that make up your program. These
might include forms, modules (blocks of code not attached to a form), graphics, and ActiveX
controls.
The project is about student information . In this we’ll gonna see how to make pages where
students can enter their respective information with particular norms. Also, how to link
different pages for proper information is also included in this.
Firstly we are coming with our loginid form where student must enter his\her active id and
password.Here we have used progress bar toolbar which means that next form is loading.
After this, if id and password would be correct, only then it will open next page which is the
MDI form, otherwise a message will pop up as you must have entered invalid id or
password.Then in MDI form, we are coming up with some of options for students as per their
choice i.e registration form, text editor, calculator, so that can have the access these choices
as per their need.
It includes the proper coding behind every action that we’ll gonna perform. For registration
form, we have connected a database from ms-access by using oledb connection.
Initially, we have made a random database in ms-access then in visual studio, select data
source option and then add new data source. This is how we made the connection and after
the connection, whatever the entries we’ll add that will display in the database table that we
have created initially.
Other than this, we are also having the options of delete, reset, add, etc i.e if you feel like you
want to delete any entry then can do that. Here we have used buttons for performing the
particular action. When user will enter his\her information that will go to their respective
textboxes. Also resetting and adding new entries option is also there to add or change the
existed data in the database.
Data grid view option is to view the changes that we are making into the table without
opening the database in access. It will display the whole database table on the screen.
Text editor is to add font color,size, name etc. to the text that we have entered. Here we are
having the option of background color, cut, copy, paste, delete etc. You can perform
accordingly. And after making your document, you may also save\save as your document.
The options mentioned above are also available with their respective shortcut keys. For this,
we have used menuscript toolbar. In this project, we have used different toolbars for different
operations for ex. Buttons, textboxes, labels, menuscript, progress bar etc.
For calculator, we have done coding behind every operation i.e for addition, subtraction,
multiplication, division etc.so that when operation is applied on operands, it must give the
desired output.
32
OBJECTIVES
The primary aim of this project is to build a quiz application to help increase the knowledge
of the students and also to aid students to be fully prepared for upcoming exams, which will
aid in achieving the following objectives;
1. This application will provide a registration form as well as a login form for the users.
2. It will enable users to take quiz on different courses at any time they so desire.
3. To enable the administrator to upload and manage questions to be answered by the
user.
4. This application will provide the score of each course after a successful completion of
a quiz section by the user.
5. It should be able to replace an existing paper work sustem and any correction
manually.
So the are some basic objectives of this project and this is going to be really helpful and
knowledgable for the students. They are going to learn many new things.
33
SPLASH SCREEN
34
LOGIN FORM
35
MDI FORM
36
CALCULATOR
37
TEXT EDITOR
38
39
REGISTRATION FORM
40
41
42
43
CODING FOR SPLASH SCREEN
End Sub
End Sub
End Sub
Me.Hide()
Form8.Show()
End If
End Sub
End Sub
End Class
44
CODING FOR LOGIN FORM
Form3.Show()
Me.Hide()
Else
MessageBox.Show("Invalid username or password!!")
End If
End Sub
End Sub
End Sub
End Class
45
CODING FOR MDI FORM
Public Class Form3
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Class
46
CODING FOR CALCULATOR
Public Class Form5
Dim Firstnum As Decimal
Dim Secondnum As Decimal
Dim Operations As Integer
Dim Operator_Selector As Boolean = False
End Sub
End If
End If
Operator_Selector = False
End If
End Sub
47
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
48
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button7.Click
If TextBox1.Text <> "0" Then
TextBox1.Text += "6"
Else
TextBox1.Text = "6"
End If
End Sub
End Sub
End Sub
End Sub
End If
End Sub
49
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button14.Click
TextBox1.Text = "0"
End Sub
End Sub
End Sub
End Sub
50
CODING FOR TEXT EDITOR
End Sub
End Sub
End Try
End Sub
51
Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles SaveAsToolStripMenuItem.Click
Try
Dim dlg As SaveFileDialog = New SaveFileDialog
dlg.Title = "Save"
dlg.CheckFileExists = False
dlg.CheckPathExists = False
dlg.DefaultExt = "txt"
dlg.Filter = "Rich Text File(*.txt)|*.txt|All files(*.*)|*.*"
If dlg.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
RichTextBox1.SaveFile(dlg.FileName, RichTextBoxStreamType.RichText)
End If
Catch ex As Exception
End Try
End Sub
52
End Sub
End If
Catch ex As Exception
End Try
End Sub
End Sub
End Sub
End Sub
53
End Sub
ColorDialog1.ShowDialog()
RichTextBox1.ForeColor = ColorDialog1.Color
End Sub
End Sub
End Class
54
CODING FOR DATA GRID VIEW
Imports System.Data.OleDb
Imports System.Data
Public Class Form7
Public cn As OleDbConnection = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\srishti\
desktop\database project by srishti\Database2.accdb")
Private Sub Form7_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
DataGridView1.DataSource = ""
Dim adapter As New OleDbDataAdapter("select * from table1", cn)
Dim datatable As New DataTable
adapter.Fill(datatable)
DataGridView1.DataSource = datatable
'TODO: This line of code loads data into the 'Database2DataSet1.Table1' table. You can
move, or remove it, as needed.
Me.Table1TableAdapter.Fill(Me.Database2DataSet1.Table1)
End Sub
End Sub
End Sub
End Class
55
CODING FOR REGISTRATION FORM
Imports System.Data.OleDb
Imports System.Data
Public Class Form6
' Dim cn As OleDbConnection
Public da As OleDbDataAdapter
Public ds As New DataSet
Public dr As OleDbDataReader
Public cmd As OleDbCommand
Public cn As OleDbConnection = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Srishti\
Desktop\database project by srishti\database2.accdb")
End Sub
End Sub
End Sub
End Sub
End Sub
56
End Sub
End While
End If
cn.Close()
End Sub
57
End Sub
End Sub
MsgBox("data deleted")
TextBox1.Text = ""
End If
cn.Close()
End Sub
End Sub
End Sub
58
Me.Hide()
End Sub
End Sub
End Sub
End Class
59