Maharashtra State Board of Technical Education
Mumbai. (M.S.)
MICRO PROJECT
On
“Notepad using vb.net”
Submitted by
Mayur Mahajan
Omkar Nandane
G.S. Mandal’s
Department of Computer Engineering
Marathwada Institute of Technology,
Polytechnic, Chhatrapati Sambhaji Nagar.
Academic Year: - 2022-2023
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
CERTIFICATE
This is to certify that: -
Roll Enrollment Exam
Name of Student
No. No. Seat No.
86 Mayur Mahajan 2100660143
118 Omkar Nandane 2100660366
We have successfully completed “Notepad using vb.net” Micro-project for
the subject GUI application development using vb.net as in the enclosed
‘Portfolio’ during his tenure of Completing the Diploma in Computer
Engineering CO4IB in Academic Year 2022-2023 from M.I.T. Polytechnic,
Chhatrapati Sambhaji Nagar with Institute Code 0066.
Date:
Prof. V.L. Thakare Prof. A. S. Nagrik
Guide H.O.D.
Principal
Marathwada Institute of Technology,
Polytechnic, Aurangabad
INDEX
Annexure-IV Micro Project Teacher Evaluation Sheet
Annexure-I A “Format for Micro-Project Proposal”
1.0 Aim/Benefits of Micro Project (minimum 30-50 words)
2.0 Course Outcomes Addressed
3.0 Proposed Methodology (procedure in brief that will be followed to do the micro-
project in about 100-200 words.)
4.0 Action Plan (Sequence and time required for major activity.)
5.0 Resources required (major resources such as row material, some machining facility,
software etc.)
Annexure-II A “Format for Micro-Project Report”
1.0 Rationale (Importance of the project, in about 30 to 50 words. This is a modified
version of the earlier one written after the work)
2.0 Aim/Benefits of Micro Project:
3.0 Course Outcomes Achieved (Add to the earlier list is more Cos are addressed)
4.0 Literature Review
5.0 Actual Methodology Followed (Write step wise work done, data collected and its
analysis (if any). The contribution of individual member may also be noted.)
6.0 Actual Resources Used (mention the actual resources used).
7.0 Outputs of the micro projects (Drawings of the prototype, drawing of survey,
presentation of collected data, findings etc.)
8.0 Skill Developed/Learning outcome of this micro project
9.0 Applications of this micro project
Annexure-IV
Micro Project
Name of Programme: Diploma in Computer Engineering Semester: - 4th
Course Title: GUI application development using vb.net Code: 22034
Title of Micro Project: Notepad using vb.net
Course Outcomes Achieved:
1. Use visual studio IDE to design Application.
2. Develop GUI application using Form controls and its events.
3. Apply Object Oriented concepts in GUI applications
Process and Individual Total
Roll Enrollment Exam Product Presentation Marks
Name of Student
No. No. Seat No. Assessment / Viva (10)
(06) (04)
86 Mayur Mahajan 2100660143
118 Omkar Nandane 2100660366
Comments / Suggestions about work:
_________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Signature of Teacher : __________________________
Name of the Teacher: __________________________
Annexure-I
Micro-Project Proposal
(Format for Micro-Project Proposal About 1-2 pages)
Title of Micro-Project: Online Examination quiz.
1.0 Aim/Benefits of Micro Project (minimum 30-50 words)
Aim:
The aim of our microproject is Notepad using VB.NET GUI application development is to
provide a simple and efficient text editor that allows users to create, edit, and save text files.
Notepad is a basic text editor that can be integrated into a larger application, providing a
simple way for users to edit text files without the need for more complex word processing
software.
Benefits: -
User-friendly Interface: Notepad provides a simple and easy-to-use interface that allows
users to quickly create, edit, and save text files.
Efficient and Lightweight: Notepad is a lightweight application that doesn't require a lot
of system resources, making it an efficient solution for text editing in GUI application
development.
Text Editing Capabilities: Notepad provides basic text editing capabilities such as undo
and redo, find and replace, and cut, copy, and paste.
2.0 Course Outcomes Addressed
1. Develop a program using Object Oriented Methodology in java.
2. Apply concept of inheritance and code reusability.
3. Apply Object Oriented concepts in GUI applications
3.0 Proposed Methodology (Procedure in brief that will be followed to do the micro-
project in about 100-200 words.)
1.Firstly we were supposed to select and among few topics we selected one.
2.The next main task was to write the program for the selected topic.
3.Although we wrote the program but there were some minor errors due to which we were
not getting the required output then omkar found out all the errors and eliminated them.
4.Then once all errors were eliminated, we executed the program on visual basic.
5. After the execution the then next task was to prepare the report and Mayur made the report
4.0 Action Plan (Sequence and time required for major activity.)
Name of
Sr. Planned Planned
Details of Activity Responsible
No Start Date Finish Date
Team Members
1) Selection of topic
02/03/23 05/0/23 Mayur, omkar
2) Preparing proposal
07/02/23 8/02/23 omkar
3) Submission &approval of
11/02/2023 15/02/2023 Omkar
proposal
4) Literature review
24/02/23 2/03/23 Mayur
5) Stepwise Methodology
10/03/23 11/03/23 Mayur, omkar
6) Writing code
15/03/23 17/03/23 Mayur, omkar
7) Output of project
18/03/23 18/03/23 Mayur, omkar
8) Preparing report
19/03/23 28/03/23 Mayur, omkar
9) Submission of microproject
29/03/23 29/03/23 Mayur, omkar
5.0 Resources required (major resources such as row material, some machining
facility, software etc.)
Sr. Name of Resource/Material Specification Qty. Remarks
No
1 Laptop I5 11th gen 1
2 Visual Studio Visual Studio -2022 1
Names of Team Members with Roll No.: -
Roll No. Name of Student
86 Mayur mahajan
118 Omkar Nandane
Annexure-II
Micro-Project Report
(Format for Micro-Project Report minimum 4 pages)
Title of Micro-Project: - Notepad using vb.net
1.0 Rationale (Importance of the project, in about 30 to 50 words. This is a modified
version of the earlier one written after the work)
Notepad is a basic text editor that is available on most Windows operating systems. While it
may seem like a simple tool, it actually has a number of important uses and benefits,
including:
Creating and Editing Simple Text Files: Notepad is a great tool for quickly creating and
editing plain text files, such as notes, memos, or to-do lists.
Scripting and Coding: Notepad can be used for basic scripting and coding tasks, such as
writing HTML, CSS, or JavaScript code for web development and for various languages.
2.0 Aim/Benefits of Micro Project:
Aim:
The aim of our microproject is Notepad using VB.NET GUI application development is to
provide a simple and efficient text editor that allows users to create, edit, and save text files.
Notepad is a basic text editor that can be integrated into a larger application, providing a
simple way for users to edit text files without the need for more complex word processing
software.
Benefits: -
User-friendly Interface: Notepad provides a simple and easy-to-use interface that allows
users to quickly create, edit, and save text files.
Efficient and Lightweight: Notepad is a lightweight application that doesn't require a lot
of system resources, making it an efficient solution for text editing in GUI application
development.
Text Editing Capabilities: Notepad provides basic text editing capabilities such as undo
and redo, find and replace, and cut, copy, and paste.
3.0 Course Outcomes Achieved (Add to the earlier list is more Cos are addressed)
1. Use visual studio IDE to design Application.
2. Develop GUI application using Form controls and its events.
3. Apply Object Oriented concepts in GUI applications
4.0 Literature Review: -
For the preparation of the project, we took the reference from YouTube by watching of the
videos which helped us to have the clear vision about what we have to do. Then we also
searched on google for more clearance about the project and also, we took reference from
subject teacher then we started the project. Through YouTube we saw that how the Notepad
is to be made. Google searches helped us in writing the program. Through java point
websites we saw which are the functions that are to be used.
And from geeksforgeeks we saw what are the functions to be required in our project and we
learnt about various function to be used in our project.
Java point website helped us to see what all are the functions, controls buttons, Exception
handling and how they are defined and which are the functions and how functions are
written and how it is declared in vb.net, how to exception block executes whenever exception
throws how to code for that buttons we have used in our project.
And we saw uses of various tools that are used in our project such as:
1. Textbox:
A Textbox control is used to display, accept the text from the user as an input, or a
single line of text on a VB.NET Windows form at runtime. Furthermore, we can add
multiple text and scroll bars in textbox control. However, we can set the text on the
textbox that displays on the form.
In this project we have learnt the use of buttons which represents values which we have given
as button name. So, the use of button is as follows
2. The button is also used in our project so the use of button:
o Button control is used to perform a click event in Windows Forms, and it can
be clicked by a mouse or by pressing Enter keys. It is used to submit all
queries of the form by clicking the submit button or transfer control to the
next form. However, we can set the buttons on the form by using drag and
drop operation.
We have also used various dialog box:
Dialog box: A Dialog box is a temporary Window for an application that accepts user
response through mouse or keyboard to open a file, save a file, notifications, alert
messages, color, print, open file dialog box, etc. It is also useful to create
communication and interaction between the user and the application
3.Menu Control: A menu is used as a menu bar in the Windows form that contains a list
of related commands, and it is implemented through Menu Strip Control. The Menu
control is also known as the VB.NET Menu Strip Control. The menu items are created
with ToolStripMenuItem Objects. There is various menu control such as Font Dialog
Box, Open file dialog box, color dialog box, print dialog box etc.
From you tube we learnt about exception handling So what is exception handling.
When an error occurred during the execution of a program, the exception
provides a way to transfer control from one part of the program to another
using exception handling to handle the error there are four built in keyword
that are try, catch, finally, throw etc. in that we have try & catch exception
in our microproject
Try block: - A try block is used to monitor a particular exception that may
throw an exception within the application. And to handle these exceptions, it
always follows one or more catch blocks.
Catch block: - It is a block of code that catches an exception with an
exception handler at the place in a program where the problem arises.
We have a made a windows form applications of simple calculator in which we have given
various background colors to enhance the visibility for the user. The reason behind giving the
background colors is that user must be able to feel like a real-world Notepad. As it is a
flexible and easy to use Notepad, we have made it in such a way that it must be user friendly
UI.
Here are some of the websites that we took reference of: -
1.Javapoint: https://www.javatpoint.com
2.geeksforgeeks: https://practice.geeksforgeeks.org/
3.youtube: https://www.youtube.com/watch?v=HFWQdGn5DaU
5.0 Actual Methodology Followed (Write step wise work done, data collected and its
analysis (if any). The contribution of individual member may also be noted.)
The first and the foremost point was to select the topic in which were having various
topics and amongst that we finalized the topic of Notepad using vb.net.
After the selection of topic, we distributed the work among each of the member.
Omkar was responsible to prepare for the proposal of the report. After the proposal
was ready, he himself was responsible to make it approve and submit it to subject
guide.
After that we referred some of YouTube videos to make a proper design of a
Notepad. And referred some google websites to gather the information about the
various buttons, textbox, dialog box, Menu controls and many more.
The then main task was to write the literature survey in this survey Mayur was fully
responsible to write it which included all the requirements and learning outcomes
from various YouTube videos and various google searches. We required a couple of
days to construct the windows form application design which is required to design a
Notepad. Then we did coding for each button.
After this we defined how this project can be made by coding for this, we decided a
specific agenda and timeline in which we distributed the work of coding in two equal
parts. In this phase we planned what is required to prepare a successful and
executable project. We collected information about windows form applications and
what are the properties of it.
Before coding the actual program, we planned the designing of the project then we
started coding.
Mayur was supposed to make the whole coding which includes the coding for each
of Menu buttons in that it includes files Menu and its sub buttons. and edit menu and
its sub buttons were also coded by me and the rest of the coding part were done by
omkar. which requires various buttons, windows form, textbox and many more.
One the coding from his side was completed Omkar was supposed to write the code
for textbox and the whole side of designing and making it look like a real-world
notepad. The Designing windows form application i.e. notepad were made by me in
which I used various fonts, colors, dialog box and many more.
Once the coding from each side was completed, we merged both the codes. And
executed the whole code on visual studio to receive proper output.
After all this, Mayur and Omkar took initiative to prepare the main part of project
which was to make the report, for this we set a timeline of a few days as we also have
to submit the project. So, omkar and I distributed half of the work we evenly made
the report.
And finally submitted it with verification from subject guide.
6.0 Actual Resources Used (mention the actual resources used).
Sr. Name of Resource/Material Specification Qty. Remarks
No
1 Laptop I5 11th gen 1
2 Visual studio - -
7.0 Outputs of the micro projects (Drawings of the prototype, drawing of survey,
Presentation of collected data, findings etc.)
Our microproject topic is creating notepad using vb.net and in this project we designed
windows from application and written code for it and it properly worked as per expected. It
can save files with .txt extensions and we can also open any text files and thus we completed
the project successfully
8.0 Skill Developed/Learning outcome of this micro project
o Improve programming knowledge about this topic
o Improve errors solving techniques and error corrections methods
o Increase Knowledge of designing and developing programs.
o Use and apply object-oriented application in vb.net.
o Improvement of installation, configuration and how to use .NET framework.
9.0 Applications of this micro project: -
o Notepad is a basic text editor application that comes pre-installed in the windows
operating system. notepad isn’t just for taking notes and opening readme files .you
can also use notepad to make basic programs. you can do this by creating batch files
that run scripts in the windows command prompt
o Anyone can use notepad to play around with code and make programs to personalize
the windows experience (in a very informal and fixable way). Even if you nothing
about coding there are lots of basic code examples out there that you can cut and
paste into notepad for some pc magic .
o Notepad lets you save your notes (as text files) exactly where you want them.
********
Program Code: -
Public Class Form1
Private redo Stack As New Stack (Of String) ()
Private undo Stack As New Stack (Of String) ()
Private Sub PasteToolStripMenuItem_Click (sender As Object, e As EventArgs)
TextBox1.Paste()
End Sub
Private Sub TextBox1_TextChanged (sender As Object, e As EventArgs) Handles
TextBox1.TextChanged
undoStack.Push(TextBox1.Text)
redoStack.Clear()
End Sub
Private Sub NewToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
NewToolStripMenuItem.Click
If TextBox1.Modified Then
Dim a As MsgBoxResult
a = MsgBox ("Do you want to save changes", MsgBoxStyle.YesNoCancel, "New Document")
If a = MsgBoxResult.No Then
TextBox1.Clear()
Else If a = MsgBoxResult. Cancel Then
Else If a = MsgBoxResult.Yes Then
SaveFileDialog1.ShowDialog()
My. Computer. Filesystem. WriteAllText (SaveFileDialog1.FileName, TextBox1.Text,
False)
TextBox1.Clear()
End If
TextBox1.Clear()
End If
End Sub
Private Sub OpenToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
OpenToolStripMenuItem.Click
If TextBox1.Modified Then
Dim ask As MsgBoxResult
ask = MsgBox ("Do you want Save the file", MsgBoxStyle.YesNoCancel, "Open document")
If ask = MsgBoxResult.No Then
OpenFileDialog1.ShowDialog()
TextBox1.Text = My. Computer. Filesystem. ReadAllText (OpenFileDialog1.FileName)
Else If ask = MsgBoxResult. Cancel Then
Else If ask = MsgBoxResult.Yes Then
My. Computer. Filesystem. WriteAllText (SaveFileDialog1.FileName, TextBox1.Text,
False)
TextBox1.Clear()
End If
Else
OpenFileDialog1.ShowDialog()
Try
TextBox1.Text = My. Computer. Filesystem. ReadAllText (OpenFileDialog1.FileName)
Catch ex As Exception
End Try
End If
End Sub
Private Sub SaveToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
SaveToolStripMenuItem.Click
SaveFileDialog1.ShowDialog()
If My. Computer. Filesystem. File Exists (SaveFileDialog1.FileName) Then
Dim ask As MsgBoxResult
ask = MsgBox ("File already Exist,Would you like to replace it?",
MsgBoxStyle.YesNoCancel, "File Exists")
If ask = MsgBoxResult.No Then
SaveFileDialog1.ShowDialog()
Else If ask = MsgBoxResult.Yes Then
My. Computer. Filesystem. Writeable (SaveFileDialog1.FileName, TextBox1.Text, False)
End If
Else
Try
My. Computer. Filesystem. Writeable (SaveFileDialog1.FileName, TextBox1.Text, False)
Catch ex As Exception
End Try
End If
End Sub
Private Sub ExitToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
ExitToolStripMenuItem.Click
End
Me. Close ()
End Sub
Private Sub UndoToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
UndoToolStripMenuItem.Click
If undoStack.Count > 0 Then
Dim text As String = undoStack.Pop()
redoStack.Push(text)
TextBox1.Text = text
End If
End Sub
Private Sub CutToolStripMenuItem_Click_1(sender As Object, e As EventArgs) Handles
CutToolStripMenuItem.Click
My. Computer. Clipboard. Clear ()
If TextBox1.SelectionLength > 0 Then
My. Computer. Clipboard.SetText(TextBox1.SelectedText)
End If
TextBox1.SelectedText = ""
End Sub
Private Sub PasteToolStripMenuItem1_Click (sender As Object, e As EventArgs) Handles
PasteToolStripMenuItem1.Click
Dim clipboard Text As String = Clipboard.GetText()
If Not String.IsNullOrEmpty(clipboard Text) Then
If Type of Active Control Is Textbox Base Then
CType (Active Control, Textbox Base). Selected Text = clipboard Text
Else If Type of Active Control Is Control and Also CType (Active Control, Control). Can
Select Then
Dim selected Control as Control = CType (Active Control, Control)
If Type of Selected Control Is Rich Textbox Then
CType (selected Control, Rich Textbox). Selected Text = clipboard Text
Else If Type of Selected Control Is Textbox Then
CType (selected Control, Textbox). Selected Text = clipboard Text
End If
End If
End If
End Sub
Private Sub FindToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
FindToolStripMenuItem.Click
Dim a As String
Dim b As String
a = Input Box ("Enter the text to be found")
b = InStr (TextBox1.Text, a)
If b Then
TextBox1.Focus()
TextBox1.SelectionStart = b - 1
TextBox1.SelectionLength = Len(a)
Else
MsgBox ("text not found")
End If
End Sub
Private Sub CopyToolStripMenuItem_Click_1(sender As Object, e As EventArgs) Handles
CopyToolStripMenuItem.Click
If Type Of Active Control Is Textbox Base Then
Dim selected Text As String = CType(Active Control, Textbox Base).Selected Text
If Not String.IsNullOrEmpty(selected Text) Then
Clipboard.SetText(selected Text)
End If
Else If Type Of Active Control Is Control And Also CType(Active Control, Control).Can Select
Then
Dim selected Control As Control = CType(Active Control, Control)
If Type Of Selected Control Is Rich Textbox Then
Dim selected Text As String = CType(selected Control, Rich Textbox).Selected Text
If Not String.IsNullOrEmpty(selected Text) Then
Clipboard.SetText(selected Text)
End If
Else If Type Of selected Control Is Textbox Then
Dim selected Text As String = CType(selected Control, Textbox).Selected Text
If Not String.IsNullOrEmpty(selected Text) Then
Clipboard.SetText(selected Text)
End If
End If
End If
End Sub
Private Sub FontToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
FontToolStripMenuItem.Click
FontDialog1.ShowDialog()
TextBox1.Font = FontDialog1.Font
End Sub
Private Sub BackgroundColorToolStripMenuItem_Click (sender As Object, e As EventArgs)
Handles BackgroundColorToolStripMenuItem.Click
ColorDialog1.ShowDialog()
TextBox1.BackColor = ColorDialog1.Color
End Sub
Private Sub ABOUTToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
ABOUTToolStripMenuItem.Click
MsgBox("NOTEPAD DEVELOPED BY" & vbCrLf & "Mayur And omkar")
End Sub
Private Sub FontColorToolStripMenuItem_Click (sender As Object, e As EventArgs) Handles
FontColorToolStripMenuItem.Click
If ColorDialog1.ShowDialog = Windows. Forms. DialogResult.OK Then
TextBox1.ForeColor = ColorDialog1.Color
End If
End Sub
End Class