You are on page 1of 134

LAB

MANUAL

.Net Programming
(3340704)
(EVEN–2022)
4TH SEMESTER

COMPUTER ENGINEERING
DEPARTMENT
GOVERNMENT POLYTECHNIC

DEPARTMENT OF COMPUTER ENGINEERING

CERTIFICATE

This is to certify that


This is to certify that Mr/Ms _______________________________
Enrollment No. __________________of Computer Engineering
4th Semester has completed his/her term work of .Net
Programming(3340704) within the four walls of the institute
during the academic year January 2022-April 2022.

Date:

Sign of Faculty Sign of H.O.D


.Net Programming Course Code: 3340704

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT

COURSE CURRICULUM
COURSE TITLE: .NET PROGRAMMING
(Code: 3340704)

Diploma Programmes in which this course is offered Semester in which offered

Computer Engineering 4th Semester

1. RATIONALE
The .NET platform has evolved quickly to become a robust technology platform for enterprise
application development and systems integration. It is a very popular platform these days being
used to develop web sites/ web based applications. The students of Diploma in Computer
Engineering should have skills in .NET Programming techniques using VB.NET. This course
aims that student should learn creating simple applications as well as Applications that are
database driven using . NET technology

2. COMPETENCY
The course content should be taught and implemented with the aim to develop different
types of skills so that students are able to acquire following competency:

 To design user interface, code, test and debug vb.net applications

3. COURSE OUTCOMES
The theory should be taught and practical should be carried out in such a manner that students
are able to acquire different learning out comes in cognitive, psychomotor and affective domain
to demonstrate following course outcomes.

i.Explain the architecture of Dot Net Technology.


ii.Develop single form based .simple Net applications using basic and advanced control
iii.Develop multiple form and menu based .Net applications
iv. Develop small ADO.net based database driven .Net application
v.Implement and trouble shoot simple .Net Applications

4. TEACHING AND EXAMINATION SCHEME

Teaching Scheme Total Examination Scheme


(In Hours) Credits Theory Marks Practical Total
(L+T+P) Marks Marks
L T P C ESE PA ESE PA

3 0 4 7 70 30 40 60 200

GTU/ NITTTR Bhopal/12-13 Gujarat State


.Net Programming Course Code: 3340704

Legends: L-Lecture; T – Tutorial/Teacher Guided Theory Practice; P - Practical; C – Credit


ESE - End Semester Examination; PA - Progressive Assessment.

5. COURSE DETAILS

Major Learning Topics and Sub-topics


Unit Outcomes (in cognitive
domain)
Unit – I 1a. List the components 1.1 Overview of Microsoft .NET Framework
Introductio of Framework and 1.2 The .NET Framework components
n to describe CLR 1.3 The Common Language Runtime (CLR)
Microsoft Environment
.NET 1.4 The .NET Framework class Library
framework 1b. Recognize various 1.5 Getting Started with Visual Basic .net IDE :
and VB.Net parts of visual basic .net Set up of work environment, start page, the
IDE menu system, toolbars, the new project dialog
box, graphical designers, code designers,
intellisense, the object explorer, the toolbox,
the solution explorer, the class view window,
the properties window, the dynamic help
window, the server explorer, the output
window, the command window
1c. List data types, 1.6 Visual basic language concept :variables,
operators Constants, Data Types, Operators, Control
1d. Implement small Structures and loops, Arrays : single and
programs using multidimensional array, declaring, dynamic
operators, loops and array
array
Unit– II 2a. Design user interface 2.1 Working with Form :Properties : appearance,
Introductio using enlisted controls behaviour, layout, windows style etc, methods
n to 2b. List control’s and events
Windows important properties, 2.2 Differentiate procedure oriented, object-
Common methods and events oriented and event driven programming
Controls 2c. Develop, test and 2.3 Inputbox, Messagebox
debug small applications 2.4 Working with Common Tool Box Controls:
using enlisted controls Label & button (Properties: flatstyle, image,
imagealign etc.), Textbox (Properties:
autosize, maxlength, multiline, readonly,
wordwrap etc.), NumericUpDown (textalign,
updownalign, value, interceptarrowkeys,
decimalplaces, increment, maximum,
minimum etc.) Check Box (autocheck,
checked, checkaligned, checkstate, threestate
etc.), Radio Button (check aligned, check,
autocheck etc.), Group Box (gridsize:width,
height etc.) control and all important methods
and events

GTU/ NITTTR Bhopal/12-13 Gujarat State


.Net Programming Course Code: 3340704

Major Learning Topics and Sub-topics


Unit Outcomes (in cognitive
domain)
Unit– III 3a. List assorted 3.1 Working with other controls of toolbox : Date
Additional (enlisted) control’s Time Picker, List Box, Combo box, Picture
controls and it’s properties, Box, Rich Text Box, Progress bar, Masked
and Menus events and methods Text box, Link Label, Checked List box,
of Windows 3b. Develop small Scroll Bars, timer
applications using
appropriate controls
3c. Develop applications 3.2 Working with Menus: creating menu,
using menu and inserting, deleting, assigning short cut keys,
popup menu pop up menu
Unit– IV 4a. Include the dialog 4.1 Dialog Boxes: OpenFileDialog,
Advanced boxes in developed SaveFileDialog, FontDialog, ColorDialog,
Features of applications PrintDialog
VB.Net 4b. Differentiate sub 4.2 Sub Procedures and functions : declaring,
procedures and passing and returning arguments, exiting from
functions it, pass by value and pass by ref
4c. Create applications
using procedures and
functions
4d. Differentiate 4.3 Exception Handling : Structured Error
structured and Handling (Try ….Catch ….finally),
unstructured error Unstructured Error Handling (On error go to
handling line, goto 0, goto -1, resume next )
4e. Include and execute
exception handling in
developed application
using structured and
unstructured error
handling
4e. Develop multiple 4.4 Multiple document interface (MDI) : MDI
form application Parent form and child form
Unit– V 5a. Use mathematical 5.1 Inbuilt Functions : Mathematical Functions(
Inbuilt functions in vb .net The Abs function, The Exp function ,The Fix
Functions applications Function , The Int Function, The Log Function
and , The Rnd( ) Function, The Round Function,
Database The Sqrt Function),
access 5b. Use string function 5.2 String manipulation( The Mid Function , The
using in vb.net applications Right Function, The Left Function , The Trim
ADO.NET Function, The Ltrim Function , The Rtrim
Function , The InStr function , The Ucase and
the Lcase Functions , The Chr and the Asc
functions, Formatting Functions), Format
Functions ( Formatting Using ToString
Method ,Formatting Date and Time )

GTU/ NITTTR Bhopal/12-13 Gujarat State


.Net Programming Course Code: 3340704

Major Learning Topics and Sub-topics


Unit Outcomes (in cognitive
domain)
5c. Describe objects of 5.3 ADO .NET Object Model: Dataprovider(
ado.net model connection, command, data reader, data
5e. Create ado.net adapter, datareaders) Dataset
connection to SQL and (datatablecollection(datatable, datarows,
other odbc servers to datacolumns, data constraints),
view database data datarelationcollection)
5f. Develop, test, debug 5.4 ADO .NET Programming :Creating a
small vb.net based Database Application, Creating Connection to
database applications a Database using ADO.NET , Populating Data
in ADO.NET, Browsing Records, Datagrid
view, Editing, Saving, Adding and Deleting
Records using bounded and unbounded

6. SUGGESTED SPECIFICATION TABLE WITH HOURS & MARKS (THEORY)


Unit Unit Title Teachin Distribution of Theory Marks
No. g Hours R U A Total
Level Level Level Marks
I Introduction to Microsoft .NET
06 6 4 0 10
framework and Basics of VB.Net
II Introduction to Windows
08 4 4 6 14
Common Controls
III Windows More controls and
12 4 8 8 20
Menus
IV Advanced Features of VB.Net 06 2 4 4 10
V Inbuilt Functions and
10 0 8 8 16
Database access using ADO.NET
Total 42 16 28 26 70
Legends: R = Remembrance; U = Understanding; A = Application and above levels (Revised
Bloom’s taxonomy)
Note: This specification table shall be treated as a general guideline for students and teachers.
The actual distribution of marks in the question paper may vary slightly from above table.

7. SUGGESTED LIST OF EXERCISES/PRACTICALS

The practical/exercises should be properly designed and implemented with an attempt to develop
different types of skills (outcomes in psychomotor and affective domain) so that students are
able to acquire the competencies/programme outcomes. Following is the list of practical
exercises for guidance.

Note: Here only outcomes in psychomotor domain are listed as practical/exercises. However, if
these practical/exercises are completed appropriately, they would also lead to development of
certain outcomes in affective domain which would in turn lead to development of Course
Outcomes related to affective domain. Thus over all development of Programme Outcomes (as
given in a common list at the beginning of curriculum document for this programme) would be
assured.

GTU/ NITTTR Bhopal/12-13 Gujarat State


.Net Programming Course Code: 3340704

Faculty should refer to that common list and should ensure that students also acquire outcomes
in affective domain which are required for overall achievement of Programme Outcomes/Course
Outcomes.

Unit Practical Exercises Hrs.


S. No.
No. (Outcomes’ in Psychomotor Domain) required
Observe and draw visual .net IDE layout and hands on 01
1 I
practice to create, save and open the project
Write, test and debug at least 5 loop, array and operator 02
2 I
based vb.net programs
II Design forms and write, test and debug programs to test its 02
3
various properties , methods, events
Write, test and debug program to test input box and 01
4 II
message box
Write, test and debug applications to use textbox, label, 06
5 II
button
Write, test and debug applications to use radio button, 04
6 II
checkbox, numeric updown and group box controls
Write, test and debug application using date time picker, list 04
7 III
box, combo box, picture box
Write, test and debug application using rich text box, 04
8 III
progress bar, masked text box, link label
Write, test and debug application using checked list box, 04
9 III
scroll bars, timer
10 III Write, test and debug applications using menu 02
11 IV Write, test and debug applications using dialog boxes 04
Write, test and debug applications using sub procedures and 04
12 IV
functions
13 IV Write, test and debug applications using MDI 02
Write, test and debug applications using math and string 04
14 V
manipulation functions
15 V Draw ado.net object model 01
Create and test connection using ado.net to view SQL 02
16 V
express server/Microsoft Access data in textbox etc controls
Create and test connection using ado.net Oracle/other 02
17 V
database data in textbox etc controls
Create connection view controls like data-grid view 02
18 V
controls
Write, test and debug small application to add, edit, search, 03
19 V
delete record in database in bounded mode
Write, test and debug small application to add, edit, search, 06
20 V delete record in database in unbounded mode i.e. through
coding
Total Hours 58

GTU/ NITTTR Bhopal/12-13 Gujarat State


.Net Programming Course Code: 3340704

7. SUGGESTED LIST OF STUDENT ACTIVITIES


Following is the list of proposed student activities like:

i. Study available small VB. Net application on internet and reuse in your application
ii. Develop VB.net related small applications
iii. Present the application developed

8. SPECIAL INSTRUCTIONAL STRATEGIES (if any)

The course activities include Lectures and Practical Exercises as per teaching scheme. The
programmes in would be executed during practical’s sessions. Following needs attention:

i. Concepts will be introduced interactively in lectures using multimedia projector.


ii. Students should be given sufficient hands on to develop sample web based applications
using .NET technology under close guidance of Teachers.

9. SUGGESTED LEARNING RESOURCES

A) List of Books

S.
Title of Book Author Publication
No.
Visual Basic .net Shelly, cashman, Cengage learning, 2012
1. Comprehensive Concepts and Quasney
Techniques
Visual Basic .net Steven Holzner Dream Tech Press Latest
2.
Edition
Murach's Beginning Visual Anne Prince Murach
3. Basic .NET

Programming in Visual Julia Case MGH Latest edition


4. Basic. NET Bradley, Anita C.
Millspaugh

B) List of Major Equipment/ Instrument with Broad Specifications

i.Computer System with latest configuration and memory


ii. Multimedia projector
iii. Internet Access
iv.Access to library resources

C) List of Software/Learning Websites

i. Software: Microsoft Visual Studio latest express edition


ii. http://www.homeandlearn.co.uk/NET/vbNet.html
iii. http://msdn.microsoft.com/en-us/beginner/default.aspx
iv. Videos : http://www.youtube.com/watch?v=hE05SqxPs9E,
http://www.learnvisualstudio.net/
v.http://www.tutorialspoint.com/vb.net/vb.net_basic_controls.htm
vi.http://www.freelearn110.com/visualbasic/level1/tutorials.html

GTU/ NITTTR Bhopal/12-13 Gujarat State


.Net Programming Course Code: 3340704

vii.http://msdn.microsoft.com/en-us/vstudio/hh388573.aspx,
viii.http://msdn.microsoft.com/en-us/library/dd492171.aspx
ix.http://msdn.microsoft.com/en-in/vstudio/cc136611.aspx

11. COURSE CURRICULUM DEVELOPMENT COMMITTEE

Faculty Members from Polytechnics


 Prof. R. M. Shaikh, H.O.D Computer Department, K. D. Polytechnic, Patan
 Prof. K. N. Raval, H.O.D Computer Department, R. C. Technical Institute,
Ahmedabad
 Prof. Manisha P Mehta, Sr. Lecturer in Computer Technology, K. D. Polytechnic,
Patan
 Prof. R. M. Shah, Sr. Lecturer in Computer Technology, Government Polytechnic,
Ahmedabad

Coordinator and Faculty Members from NITTTR, Bhopal

 Dr.Priyanka Tripathi, Associate Professor, Dept. of Computer Engineering and


Applications.
 Dr. R. K. Kapoor, Associate Professor, Dept. of Computer Engineering and
Applications.

GTU/ NITTTR Bhopal/12-13 Gujarat State


COURSE OUTCOMES:
• Program: Diploma
• Discipline: Computer Engineering
• Semester: 4th
• Course Name: .Net Programming
• Course Code: 3340704

Course Code COs Course Outcome


3340704 C3340704.1(U) Understand the architecture of dot net technology.

C3340704.2(R, AN) Designing single form and multiple form and simple and
menu-based application using controls for given problem
statements.

C3340704.3(AP) Designing single form and multiple form Using Dialog


box, Exception Handling, Sub procedure, Function and
MDI.
C3340704.4 (AP,C) Designing small ADO.NET based database driven .net
application. write backend database program using
small ADO.NET for given problem statements.
Designing Simple .net Applications for given problem
statement
INDEX
Sr Aim Unit CO Date Signature Grade
No No
1 1
Observe and draw visual.net IDE layout and
1 practice how to open, create and save the
project.
Design an application in which when you 1 2
click on HELLO button then “Hello” message
2
display in the textbox and click on CLEAR
button then textbox is clear.
Design an application, which converts the 1 2
value written in the TEXTBOX to bold, italic
3
and also showing the use of CUT, COPY,
PASTE methods.
Design an application to calculate total 1 2
marks as per following criteria.
4
Total Final marks= 25% of (class test-1 + class
test-2) + 50% of MID Sem exam.
Design an application, in which different 1 2
5
relational operation perform.
Design an application which performs 1 2
mathematical operations using if…then…else
6 and select….case structure (Use three
textbox one of them to enter operator +,-,*
or /)
Design an application to find sum of N 1 2
numbers using while, do. While, for loop.
7
Use Numeric Up Down control to input 1 to
N Value.
Design an application, which define different 1 2
types of array:
• Dynamic array. (Using
Preserve Keyword & Without
Using Preserve Keyword)
8
• Multi-dimensional array (3
X3 Multi-Dimensional Array)
• Fix Array. (Print First 5 even
Values)

Design a simple calculator using vb. net 1 2


9
which performs:
1) addition 2) subtraction 3) division 4)
2multiplication 5) Clear all values 6) Exit from
Calculator.
Write a program which asks the user his/her 2 2
10 name and greets him using Input box and
Message box.
Design an application, which changes the 2 2
FORM Caption, Back color and Forecolor
11
using COMMAND BUTTON and OPTION
BUTTON.
Design an application, which shows the list of 2 2
hobbies in using CHECK BOXES whenever you
12
click any of the CHECKBOX the corresponding
caption must be displayed in the LABEL.
Design an application which have following 3 2
facilities:
• ADD: Add item from TEXTBOX to
CHECKEDLISTBOX
• INSERT: Insert an item at particular
Position.
• DELETE: Delete a particular item
13 • REMOVE: Removes selected item
from CHECKEDLISTBOX.
• CLEAR: Removes all the items from
CHECKEDLISTBOX
• EXIT: Ends the application.

Total number of items must be displayed in


the LABEL.
Design an application, which have two 3 2
LISTBOX and two COMMAND BUTTONS.
Initially add few items to LISTBOX at design
time.
• ADD: This Command Button adds
14 selected item in first LISTBOX to
second LISTBOX.
• REMOVE: This Command Button
removes selected item from second
LISTBOX and adds it to first LISTBOX.

Design a small Application for calculating 3 2


days for leave.
15
• Let’s add two Date Time Picker
controls on the form, where the user
will enter the date of joining and
date of leaving.
• Let’s keep Leave calculation button
control for displaying Leave days.
Design Application in which Back Color of the 3 2
PICTUREBOX control Change When user click
16
on the horizontal SCROLLBAR control (Use
RGB(R,G,B) function)
Design application which change the value of 3 2
Progress Bar Control and also display the
17
digital clock (Use Timer, Progress Bar control
and use Label to Display Time).
Design an Application with Menu where the 3 3
Color Menu Changes the background color of
18 the form and the Size menu for minimize and
maximize for form. And design one popup
menu which activate by right mouse click.
Design a Simple Application, which opens a 4 3
File Dialog Box, File Save, Color Dialog box,
19 and Font Dialog Box using Common Dialog
Control.in this example use Rich Textbox
control to open and save file.
Design an application to swap two numbers. 4 3
20
(Call by Value and Call by Reference).
Develop an application showing the use of 4 3
Structured Error Handling (Try …. Catch
21 ….finally),and Unstructured Error Handling
(On error go to line, go to 0, go to -1, resume
next )
Design a simple application using MDI 4 3
22
Technique.
Design an application to demonstrate the 5 3
use of inbuilt function Exp(), Log(), Sqrt(),
Trim(), Ucase() and Lcase(). Use InputBox()
23
function to take the value from the user and
display the result using MessageBox()
function.
Write an application to fetch data from 5 4
24
database and display in grid view.
Design an application to find Average, 5 4
25 Minimum, Maximum and Sum of salary using
Execute Scalar Function.
Write, test and debug an application to Insert, 5 4
26 Update, Delete and Search record in database
in bounded mode.
Page |1

Practical: 1
Aim:- Observe and draw visual.net IDE layout and practice how to open,
create and save the project.

1. How to open Visual Studio :-

Double click on the symbol of Visual Studio to open it.

Government Polytechnic Gandhinagar .Net Programming


Page |2

2. How to create a Project :-

Double click on the New Project in Visual Studio to open a project.

Government Polytechnic Gandhinagar .Net Programming


Page |3

3. How to Save The Project :-

Save the Created Project in Your destination and give a name to project.

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


Page |4

Government Polytechnic Gandhinagar .Net Programming


Page |5

Practical: 2
Aim:- Design an application in which when you click on HELLO button
then “Hello” message display in the textbox and click on CLEAR button
then textbox is clear.

Government Polytechnic Gandhinagar .Net Programming


Page |6

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


Page |7

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


Page |8

Government Polytechnic Gandhinagar .Net Programming


Page |9

Practical: 3
Aim:- Design an application, which converts the value written in the
TEXTBOX to bold, italic and also showing the use of CUT, COPY,
PASTE methods.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 10

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 11

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 12

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 13

Practical: 4
Aim:- Design an application to calculate total marks as per following
criteria.
Total Final marks= 25% of (class test-1 + class test-2) + 50% of
MID Sem exam.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 14

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 15

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 16

Government Polytechnic Gandhinagar .Net Programming


P a g e | 17

Practical: 5
Aim:- Design an application, in which different relational operation
perform.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 18

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 19

Government Polytechnic Gandhinagar .Net Programming


P a g e | 20

Teacher’s Signature_______________ Grade______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 21

Practical: 6
Aim:- Design an application which performs mathematical operations
using if…then…else and select….case structure (Use three textbox one
of them to enter operator +,-,* or /)

Government Polytechnic Gandhinagar .Net Programming


P a g e | 22

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 23

Government Polytechnic Gandhinagar .Net Programming


P a g e | 24

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 25

Practical: 7
Aim:- Design an application to find sum of N numbers using while, do.
While, for loop. Use Numeric Up Down control to input 1 to N Value.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 26

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 27

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 28

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 29

Practical: 8
Aim:- Design an application, which define different types of array:

• Dynamic array. (Using Preserve Keyword & Without Using


Preserve Keyword)
• Multi-dimensional array (3 X3 Multi-Dimensional Array)
• Fix Array. (Print First 5 even Values)

Government Polytechnic Gandhinagar .Net Programming


P a g e | 30

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 31

Government Polytechnic Gandhinagar .Net Programming


P a g e | 32

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 33

Practical: 9
Aim:- Design a simple calculator using vb.net.which performs:
1) addition 2) subtraction 3) division 4) multiplication 5) Clear all values
6) Exit From Calculator.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 34

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 35

Government Polytechnic Gandhinagar .Net Programming


P a g e | 36

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 37

Practical: 10
Aim:- Write a program which asks the user his/her name and greets him
using Input box and Message box.

Input Box:

Message Box:

Government Polytechnic Gandhinagar .Net Programming


P a g e | 38

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 39

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 40

Government Polytechnic Gandhinagar .Net Programming


P a g e | 41

Practical: 11
Aim:- Design an application, which changes the FORM Caption,
Backcolor and Forecolor using COMMAND BUTTON and OPTION
BUTTON

Government Polytechnic Gandhinagar .Net Programming


P a g e | 42

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 43

Government Polytechnic Gandhinagar .Net Programming


P a g e | 44

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 45

Practical: 12
Aim:- Design an application, which shows the list of hobbies in using
CHECK BOXES whenever you click any of the CHECKBOX the
corresponding caption must be displayed in the LABEL

Government Polytechnic Gandhinagar .Net Programming


P a g e | 46

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 47

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 48

Government Polytechnic Gandhinagar .Net Programming


P a g e | 49

Practical: 13
Aim:- Design an application which have following facilities:

• ADD: Add item from TEXTBOX to CHECKEDLISTBOX


• INSERT: Insert an item at particular Position.
• DELETE: Delete a particular item
• REMOVE: Removes selected item from CHECKEDLISTBOX.
• CLEAR: Removes all the items from CHECKEDLISTBOX
• EXIT: Ends the application.

Total number of items must be displayed in the LABEL.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 50

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 51

Government Polytechnic Gandhinagar .Net Programming


P a g e | 52

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 53

Practical: 14
Aim:- Design an application, which have two LISTBOX and two
COMMAND BUTTONS. Initially add few items to LISTBOX at design
time.

• ADD: This Command Button adds selected item in first LISTBOX


to second LISTBOX.
• REMOVE: This Command Button removes selected item from
second LISTBOX and adds it to first LISTBOX

Government Polytechnic Gandhinagar .Net Programming


P a g e | 54

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 55

Government Polytechnic Gandhinagar .Net Programming


P a g e | 56

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 57

Practical: 15
Aim:-
Design a small Application for calculating days for leave.
• Let’s add two Date Time Picker controls on the form, where the
user will enter the date of joining and date of leaving.
• Let’s keep a Leave calculation button control for displaying
Leave days.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 58

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 59

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 60

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 61

Practical: 16
Aim:- Design Application in which Back Color of the PICTUREBOX
control Change When user click on the horizontal SCROLLBAR control
(Use RGB(R,G,B) function)

Government Polytechnic Gandhinagar .Net Programming


P a g e | 62

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 63

Government Polytechnic Gandhinagar .Net Programming


P a g e | 64

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 65

Practical: 17
Aim:- Design application which change the value of Progress Bar
Control and also display the digital clock (Use Timer, Progress Bar
control and use Label to Display Time)

Government Polytechnic Gandhinagar .Net Programming


P a g e | 66

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 67

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 68

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 69

Practical: 18
Aim:- Design an Application with Menu where the Colour Menu
Changes the background colour of the form and the Size menu for
minimize and maximize for form. And design one popup menu which
activate by right mouse click

Government Polytechnic Gandhinagar .Net Programming


P a g e | 70

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 71

Government Polytechnic Gandhinagar .Net Programming


P a g e | 72

Government Polytechnic Gandhinagar .Net Programming


P a g e | 73

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 74

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 75

Practical: 19
Aim:- Design a Simple Application, which opens a File Dialog Box, File
Save, Colour Dialog box, and Font Dialog Box using Common Dialog
Control.in this example use Rich Textbox control to open and save file

Government Polytechnic Gandhinagar .Net Programming


P a g e | 76

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 77

Government Polytechnic Gandhinagar .Net Programming


P a g e | 78

Government Polytechnic Gandhinagar .Net Programming


P a g e | 79

Teacher’s Signature_______________ Grade______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 80

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 81

Practical: 20
Aim:- Design an application to swap two numbers.(Call by Value and
Call by Reference).

Government Polytechnic Gandhinagar .Net Programming


P a g e | 82

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 83

Government Polytechnic Gandhinagar .Net Programming


P a g e | 84

Government Polytechnic Gandhinagar .Net Programming


P a g e | 85

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 86

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 87

Practical: 21
Aim:- Develop an application showing the use of Structured Error
Handling (Try ….Catch ….finally),and Unstructured Error Handling (On
error go to line, go to 0, go to -1, resume next )

Government Polytechnic Gandhinagar .Net Programming


P a g e | 88

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 89

Government Polytechnic Gandhinagar .Net Programming


P a g e | 90

Government Polytechnic Gandhinagar .Net Programming


P a g e | 91

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 92

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 93

Practical: 22
Aim:- Design a simple application using MDI Technique

Government Polytechnic Gandhinagar .Net Programming


P a g e | 94

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 95

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 96

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 97

Practical: 23
Aim:- Design an application to demonstrate the use of inbuilt function
Exp(), Log(), Sqrt(), Trim(), Ucase() and Lcase(). Use InputBox() function
to take the value from the user and display the result using
MessageBox() function.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 98

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 99

Government Polytechnic Gandhinagar .Net Programming


P a g e | 100

Government Polytechnic Gandhinagar .Net Programming


P a g e | 101

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 102

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 103

Practical:24

Write an application to fetch data from database and


display in grid view.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 104

Government Polytechnic Gandhinagar .Net Programming


P a g e | 105

Government Polytechnic Gandhinagar .Net Programming


P a g e | 106

OUTPUT:

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 107

Practical: 25
Design an application to find Average, Minimum, Maximum
and Sum of salary using Execute Scalar Function.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 108

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 109

Government Polytechnic Gandhinagar .Net Programming


P a g e | 110

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 111

Practical: 26

Aim: Write ,test and debud an application to Insert , Update


, Delete and Search record in database in bounded mode.

Government Polytechnic Gandhinagar .Net Programming


P a g e | 112

Sr No. Control Property Name Property Value

Government Polytechnic Gandhinagar .Net Programming


P a g e | 113

Government Polytechnic Gandhinagar .Net Programming


P a g e | 114

Government Polytechnic Gandhinagar .Net Programming


P a g e | 115

Government Polytechnic Gandhinagar .Net Programming


P a g e | 116

Teacher’s Signature_______________ Grade_______________

Government Polytechnic Gandhinagar .Net Programming


P a g e | 117

Government Polytechnic Gandhinagar .Net Programming

You might also like