This document is a report submitted by Kajal Gaharwal for their Visual Basic assessment project. It includes an acknowledgements section thanking those who helped. The synopsis explains that the project strengthened their practical Visual Basic concepts. The bulk of the document contains the code for the Notepad application created in Visual Basic, including multiple forms and functions for common text editing tasks.
This document is a report submitted by Kajal Gaharwal for their Visual Basic assessment project. It includes an acknowledgements section thanking those who helped. The synopsis explains that the project strengthened their practical Visual Basic concepts. The bulk of the document contains the code for the Notepad application created in Visual Basic, including multiple forms and functions for common text editing tasks.
This document provides a tutorial on building an interactive voice response (IVR) adventure game using VoiceXML. It begins with a simple example that allows the user to select between 3 doors using DTMF inputs. It then expands the example to allow voice inputs in addition to DTMF. Further examples add event handling, help functionality, and dynamic content generation through integration with a Perl script. The goal is to recreate the interactive fiction of early text adventure games using VoiceXML and telephony.
This document discusses natural language processing tasks related to analyzing fictional languages from the book series A Song of Ice and Fire. It presents code samples in Python using the NLTK library to process text samples in Dothraki, Astapori Valyrian, and High Valyrian: cleaning and tokenizing text, calculating word frequencies, and extracting phonological features to compare across the languages. It also analyzes a sample of Assamese text to determine positional restrictions and frequency of certain sounds. The document concludes with proposals for further work incorporating the phonological features into language classifiers.
The document contains code snippets in Visual Basic for various programming tasks like:
1. Copying text from one text box to another
2. Clearing text from text boxes
3. Summarizing a number and reversing it
4. Calculating factorial of a number
5. Checking if a number is prime
6. Swapping numbers by value and reference
7. Checking case of a string and converting case
The document contains 12 code examples demonstrating various functions in VB.NET including:
1) Displaying a message when a button is clicked
2) Showing a message box on button click
3) Accepting input and displaying a sum
4) Performing math operations on input values
5) Checking if a number is positive, negative, or zero
6) Finding the maximum and minimum of three numbers
7) Calculating simple and compound interest
8) Creating a student marksheet
9) Building a digital clock using a timer
10) Displaying prime numbers between ranges
11) Collecting and displaying user information
12) Adding names between listboxes and removing selected names
This document provides instructions for creating a simple book sales application in VB.Net. It describes setting up the database tables, designing the user interface forms, and includes example code for form functionality like loading and saving data. Tables are created for book types, books, transactions, and transaction details. Forms are designed for a main menu, managing book types and books, and processing sales transactions. Code examples show connecting to the database and querying/manipulating data. The goal is to demonstrate creating a basic working application with a database backend using VB.Net.
This presentation covers four controls: the timer, combo box, rich text box, and slider. It discusses how each control works and provides code examples for using them. For the timer, it shows how to use it as a stopwatch. For the combo box, it demonstrates populating one and changing text color based on selection. The rich text box example adds formatting to text. And the slider examples set the range and handle value change events.
1. The document contains code for three forms - one for number conversion between binary, decimal, octal and hexadecimal, one for temperature conversion, and one for calculating area.
2. The number conversion form contains functions to convert between the different number systems.
3. The temperature conversion form contains an option-driven routine to convert between Celsius, Fahrenheit and Kelvin scales.
4. The area calculation form contains buttons to calculate the area of triangles, circles, squares and rectangles by calling the appropriate formulas.
The document contains 13 programs demonstrating various visual basic concepts. Program 1 prints numbers from 1 to 5 in a loop. Program 2 prints a triangle pattern using nested loops. Program 3 prints a reverse triangle pattern. Program 4 multiplies two numbers. Program 5 prints a pyramid pattern. The remaining programs demonstrate concepts like checkboxes, option buttons, timers, mouse painting, puzzles, menus and calculating student results.
The document contains 9 VB.Net programs with code examples and output. The programs cover topics like counting vowels in a string, checking if a number is even/odd/overflow, calculating compound interest, summing positive and negative numbers from user input, concatenating strings with message box, changing font style based on checkboxes, generating a student enrollment form with combo boxes, creating a dynamic user login form using a database, and implementing a multiple document interface with parent and child forms.
This document provides information about an inventory management application created in VB.NET. It includes details on the login screen, main menu, stock record viewing and editing screens, size and color record screens, and supporting code. The application allows users to view, add, update and delete inventory stock records with attributes like quantity, product type, size, and color.
This document contains the code for an editor application called EditorNet. It includes code for opening, saving, printing and formatting text in a rich text box. Functions allow changing font style and color, as well as cutting, copying and pasting text. The code handles opening, saving and printing documents, and includes a print preview dialog box and page setup options.
The document provides an overview of .NET technology and VB.NET programming. It discusses key aspects of .NET including the Common Language Runtime (CLR), Common Type System, Windows Forms, Web Forms, Web Services, ADO.NET, XML support, and multiple language support. It also covers VB.NET programming concepts like forms, events, databases, dialog boxes, menus, classes, and arrays of objects. The document is intended as teaching material for a course on .NET and VB.NET programming.
The document contains source code for several .NET programming examples including currency conversion, degree conversion, string manipulation, calculator, and employee salary calculation. The code demonstrates how to design forms, add controls, handle events, perform calculations and insert data into a SQL database. Output for the examples is not shown. The last example contains code to calculate an employee's gross pay and net pay based on their base pay and standard deductions.
The document contains code snippets from multiple Visual Basic .NET programs related to calculating areas and perimeters of shapes, building a basic calculator application, and generating invoices. The code defines classes and subroutines to calculate geometric values and perform arithmetic operations when buttons are clicked. Variables are used to store user input from text boxes and display output.
This document provides a tutorial on building an interactive voice response (IVR) adventure game using VoiceXML. It begins with a simple example that allows the user to select between 3 doors using DTMF inputs. It then expands the example to allow voice inputs in addition to DTMF. Further examples add event handling, help functionality, and dynamic content generation through integration with a Perl script. The goal is to recreate the interactive fiction of early text adventure games using VoiceXML and telephony.
This document discusses natural language processing tasks related to analyzing fictional languages from the book series A Song of Ice and Fire. It presents code samples in Python using the NLTK library to process text samples in Dothraki, Astapori Valyrian, and High Valyrian: cleaning and tokenizing text, calculating word frequencies, and extracting phonological features to compare across the languages. It also analyzes a sample of Assamese text to determine positional restrictions and frequency of certain sounds. The document concludes with proposals for further work incorporating the phonological features into language classifiers.
The document contains code snippets in Visual Basic for various programming tasks like:
1. Copying text from one text box to another
2. Clearing text from text boxes
3. Summarizing a number and reversing it
4. Calculating factorial of a number
5. Checking if a number is prime
6. Swapping numbers by value and reference
7. Checking case of a string and converting case
The document contains 12 code examples demonstrating various functions in VB.NET including:
1) Displaying a message when a button is clicked
2) Showing a message box on button click
3) Accepting input and displaying a sum
4) Performing math operations on input values
5) Checking if a number is positive, negative, or zero
6) Finding the maximum and minimum of three numbers
7) Calculating simple and compound interest
8) Creating a student marksheet
9) Building a digital clock using a timer
10) Displaying prime numbers between ranges
11) Collecting and displaying user information
12) Adding names between listboxes and removing selected names
This document provides instructions for creating a simple book sales application in VB.Net. It describes setting up the database tables, designing the user interface forms, and includes example code for form functionality like loading and saving data. Tables are created for book types, books, transactions, and transaction details. Forms are designed for a main menu, managing book types and books, and processing sales transactions. Code examples show connecting to the database and querying/manipulating data. The goal is to demonstrate creating a basic working application with a database backend using VB.Net.
This presentation covers four controls: the timer, combo box, rich text box, and slider. It discusses how each control works and provides code examples for using them. For the timer, it shows how to use it as a stopwatch. For the combo box, it demonstrates populating one and changing text color based on selection. The rich text box example adds formatting to text. And the slider examples set the range and handle value change events.
1. The document contains code for three forms - one for number conversion between binary, decimal, octal and hexadecimal, one for temperature conversion, and one for calculating area.
2. The number conversion form contains functions to convert between the different number systems.
3. The temperature conversion form contains an option-driven routine to convert between Celsius, Fahrenheit and Kelvin scales.
4. The area calculation form contains buttons to calculate the area of triangles, circles, squares and rectangles by calling the appropriate formulas.
The document contains 13 programs demonstrating various visual basic concepts. Program 1 prints numbers from 1 to 5 in a loop. Program 2 prints a triangle pattern using nested loops. Program 3 prints a reverse triangle pattern. Program 4 multiplies two numbers. Program 5 prints a pyramid pattern. The remaining programs demonstrate concepts like checkboxes, option buttons, timers, mouse painting, puzzles, menus and calculating student results.
The document contains 9 VB.Net programs with code examples and output. The programs cover topics like counting vowels in a string, checking if a number is even/odd/overflow, calculating compound interest, summing positive and negative numbers from user input, concatenating strings with message box, changing font style based on checkboxes, generating a student enrollment form with combo boxes, creating a dynamic user login form using a database, and implementing a multiple document interface with parent and child forms.
This document provides information about an inventory management application created in VB.NET. It includes details on the login screen, main menu, stock record viewing and editing screens, size and color record screens, and supporting code. The application allows users to view, add, update and delete inventory stock records with attributes like quantity, product type, size, and color.
This document contains the code for an editor application called EditorNet. It includes code for opening, saving, printing and formatting text in a rich text box. Functions allow changing font style and color, as well as cutting, copying and pasting text. The code handles opening, saving and printing documents, and includes a print preview dialog box and page setup options.
The document provides an overview of .NET technology and VB.NET programming. It discusses key aspects of .NET including the Common Language Runtime (CLR), Common Type System, Windows Forms, Web Forms, Web Services, ADO.NET, XML support, and multiple language support. It also covers VB.NET programming concepts like forms, events, databases, dialog boxes, menus, classes, and arrays of objects. The document is intended as teaching material for a course on .NET and VB.NET programming.
The document contains source code for several .NET programming examples including currency conversion, degree conversion, string manipulation, calculator, and employee salary calculation. The code demonstrates how to design forms, add controls, handle events, perform calculations and insert data into a SQL database. Output for the examples is not shown. The last example contains code to calculate an employee's gross pay and net pay based on their base pay and standard deductions.
The document contains code snippets from multiple Visual Basic .NET programs related to calculating areas and perimeters of shapes, building a basic calculator application, and generating invoices. The code defines classes and subroutines to calculate geometric values and perform arithmetic operations when buttons are clicked. Variables are used to store user input from text boxes and display output.
This document contains the code submissions and reflections of a student named Happy Nezza Aranjuez for various Visual Basic projects assigned by their teacher, Mrs. Rowena A. Reyes. The projects include creating click events to display text, changing the shape and properties of objects, performing mathematical computations, and calculating area, volume, and hypotenuse using inputs. The student found the projects fun and educational for learning Visual Basic concepts and enjoyed exploring the different features. They felt the activities helped improve their programming skills and appreciation for how technology can enhance teaching.
This document discusses using dialog boxes in Visual Basic .NET, including OpenFileDialog, SaveFileDialog, FontDialog, and ColorDialog. It provides code to open and save files using these dialogs, select fonts and colors, and apply the selections to a RichTextBox control on a form. The code demonstrates initializing properties of the dialog boxes, handling their events, and reading/writing files and setting font/color properties.
This document provides an overview of types in Go compared to Ruby. Some key points:
- Go uses static, struct-based types while Ruby uses dynamic, class-based types.
- In Go, types are defined with the type keyword and methods are defined on specific types. In Ruby, classes define types and inheritance.
- Go types are static and checked at compile-time. Ruby types are dynamic and can change at runtime.
- Go uses interfaces to define common method sets. Ruby uses mixins and inheritance for polymorphism.
The document provides examples of defining types and methods in Go, and uses classes and inheritance in Ruby. It discusses how Go prioritizes static types while Ruby
This document contains code for multiple projects. Project 1 contains code to show and hide different forms when buttons are clicked. Project 2 contains code to load different country flag images into an image control based on a list selection. Project 3 contains code to populate and manipulate a combo box form control. Project 4 contains code for a login form, hotel reservation form calculations, and form navigation buttons.
This document contains code for a login form class in Visual Basic. The class contains code to handle the exit button click, which exits the application. It also contains code for the sign in button click, which validates that the username and password text boxes are not empty and matches the credentials stored in resources before hiding the login form and opening the main form, otherwise it displays an error message.
Gracika Benjamin , Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College,Gracika Benjamin , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Sheikh Anjum Firdoush , Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College,Sheikh Anjum Firdoush , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Harsha Chhaparwal, Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College,Harsha Chhaparwal , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Harsha Chhaparwal, Diploma Fashion Design Second Yeardezyneecole
This document is a project report submitted by Harsha Chhaparwal, a second year fashion design student, toward fulfilling the requirements of a two-year diploma in fashion design. The project focused on print development, where the student learned about various Indian art and craft techniques for creating motifs. Under faculty guidance, the student explored different print creation methods like block printing and developed a print design for bedsheets using software. The report includes sections on print types, case studies, market research, inspiration boards, and the final bedsheet design and specification sheet.
Harsha Chhaparwal, Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College,Harsha Chhaparwal , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Sheikh Anjum Firdoush , Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College,Sheikh Anjum Firdoush , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Sushmita Bhati, Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College, Sushmita Bhati, Second Year Fashion Design. This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Sushmita Bhati, Diploma Fashion Design Second Yeardezyneecole
Portfolio Of Student Of Dezyne E'cole College, Sushmita Bhati, Second Year Fashion Design. This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...dezyneecole
Portfolio Of Student Of Dezyne E'cole College, Sushmita Bhati, Second Year Fashion Design. This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...dezyneecole
Somya Jain chose fashion design as her career after discovering her creativity and interest in design through school activities. She learned the basics of design at Dezyne E'cole College, including elements, principles, shape, form, and bringing designs to life. Somya wants to become a renowned minimalist fashion designer who focuses on simple, elegant styles with a mixture of trends and her own touch. She is thankful for the skills and values Dezyne E'cole College helped develop in her and wants to continue learning to improve her design abilities.
This document describes an ATM system designed by Gitesh Chhatwani. It discusses the key functions of creating new accounts and accessing existing accounts. The new account process involves providing information like name, DOB, gender, address, contact number, deposit amount, email, account number and password. The existing account process requires entering the existing account number and password to perform operations like withdrawal, deposit, transfer, view mini statement, and check account info.
Portfolio Of Student Of Dezyne E'cole College , Anurag Yadav , B.Voc-Interior Design First Year .This Is The Portfolio Of His Work From First Year .For More Details Visit www.dezyneecole.com
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Namita Bakoliya, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Portfolio Of Student Of Dezyne E'cole College,Sheikh Anjum Firdoush , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Portfolio Of Student Of Dezyne E'cole College,Sheikh Anjum Firdoush , Second Year Fashion Design.This Is The Portfolio Of Her Work From Second Year .For More Details Visit www.dezyneecole.com
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)dezyneecole
Portfolio Of Student Of Dezyne E'cole College, Gouri Ramchandani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)dezyneecole
Portfolio Of Student Of Dezyne E'cole College, Gouri Ramchandani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Dimple Mordani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Dimple Mordani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Dimple Mordani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
How to Setup Warehouse & Location in Odoo 17 InventoryCeline George
In this slide, we'll explore how to set up warehouses and locations in Odoo 17 Inventory. This will help us manage our stock effectively, track inventory levels, and streamline warehouse operations.
How to Manage Your Lost Opportunities in Odoo 17 CRMCeline George
Odoo 17 CRM allows us to track why we lose sales opportunities with "Lost Reasons." This helps analyze our sales process and identify areas for improvement. Here's how to configure lost reasons in Odoo 17 CRM
Main Java[All of the Base Concepts}.docxadhitya5119
This is part 1 of my Java Learning Journey. This Contains Custom methods, classes, constructors, packages, multithreading , try- catch block, finally block and more.
This slide is special for master students (MIBS & MIFB) in UUM. Also useful for readers who are interested in the topic of contemporary Islamic banking.
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
How to Build a Module in Odoo 17 Using the Scaffold MethodCeline George
Odoo provides an option for creating a module by using a single line command. By using this command the user can make a whole structure of a module. It is very easy for a beginner to make a module. There is no need to make each file manually. This slide will show how to create a module using the scaffold method.
The simplified electron and muon model, Oscillating Spacetime: The Foundation...RitikBhardwaj56
Discover the Simplified Electron and Muon Model: A New Wave-Based Approach to Understanding Particles delves into a groundbreaking theory that presents electrons and muons as rotating soliton waves within oscillating spacetime. Geared towards students, researchers, and science buffs, this book breaks down complex ideas into simple explanations. It covers topics such as electron waves, temporal dynamics, and the implications of this model on particle physics. With clear illustrations and easy-to-follow explanations, readers will gain a new outlook on the universe's fundamental nature.
Executive Directors Chat Leveraging AI for Diversity, Equity, and InclusionTechSoup
Let’s explore the intersection of technology and equity in the final session of our DEI series. Discover how AI tools, like ChatGPT, can be used to support and enhance your nonprofit's DEI initiatives. Participants will gain insights into practical AI applications and get tips for leveraging technology to advance their DEI goals.
2. Submitted By
Harendra Singh Rawat
BCA 3rd Year
Dezyne E´cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2016-2017
Topic:Notepad
3. Acknowledgement
This Notepad create in “Visual Basic” was developed at Dezyne E’cole
College.
During the making of this project I have learnt a lot and I thank my mentor
Mr.Tarun Sharmaforhelping us during the making of project.
I thank my college “Dezyne Ecole College” for helping us to bring out our
skill.
With due Regards,
Harendra Singh Rawat
BCA 3rd Year
4. Notepad
Dim rp, fp, a As Variant
Dim m%, b%, c%, fd%, d%
Option Explicit
Const maxUndo = 50
Dim gblnIgnoreChangeAs Boolean
Dim gintIndexAs Integer
Dim gstrStack(maxUndo)As String
Dim stackBK(maxUndo)As String
Dim i As Integer
Private Sub copy_Click()
Call mcop
End Sub
Public Sub mcop()
Clipboard.SetTextRichTextBox1.SelText
End Sub
Private Sub cut_Click()
Call mcut
End Sub
Form 1st
5. Private Sub edit_Click()
If RichTextBox1.SelLength= 0 Then
cut.Enabled = False
copy.Enabled = False
delete.Enabled= False
selectall.Enabled = True
ElseIf RichTextBox1.SelLength=
Len(RichTextBox1.Text)Then
cut.Enabled = True
copy.Enabled = True
delete.Enabled= True
selectall.Enabled = False
Else
cut.Enabled = True
copy.Enabled = True
delete.Enabled= True
selectall.Enabled = True
End If
If Len(Clipboard.GetText(1))= 0 Then
paste.Enabled = False
Else
paste.Enabled = True
End If
End Sub
Private Sub munpop_click()
If RichTextBox1.SelLength= 0 Then
munc.Enabled = False
muncop.Enabled = False
mundele.Enabled = False
munsele.Enabled = True
ElseIf RichTextBox1.SelLength=
Len(RichTextBox1.Text)Then
munc.Enabled = True
muncop.Enabled = True
mundele.Enabled = True
munsele.Enabled = False
Else
munc.Enabled = True
muncop.Enabled = True
6. mundele.Enabled = True
munsele.Enabled = True
End If
If Len(Clipboard.GetText(1))= 0 Then
munpst.Enabled = False
Else
munpst.Enabled = True
End If
End Sub
Public Sub mcut()
Clipboard.SetTextRichTextBox1.SelText
RichTextBox1.SelText= " "
End Sub
Private Sub delete_Click()
Call mdel
End Sub
Public Sub mdel()
RichTextBox1.SelText= ""
RichTextBox1.SelText= ""
End Sub
Private Sub exit_Click()
Unload Me
End Sub
Private Sub munc_Click()
Call mcut
End Sub
Private Sub muncop_Click()
Call mcop
End Sub
Private Sub mundele_Click()
Call mdel
End Sub
Private Sub munfind_Click()
fd = InputBox("EnterWord","Find")
RichTextBox1.Find (fd)
End Sub
Private Sub munfindnext_Click()
Form4.Show
End Sub
7. Private Sub Form_Load()
Form1.Caption= "Untitled-Notepad"
m = 1
RichTextBox1.RightMargin = Screen.Width -
(Screen.Width- RichTextBox1.Width- 6000)
End Sub
Private Sub Form_Resize()
RichTextBox1.Width= Form1.Width - 300
RichTextBox1.Height= Form1.Height – 1140
End Sub
Private Sub helptopics_Click()
On Error Resume Next
With CommonDialog1
.Flags = 1
.CancelError= True
.ShowHelp
End With
End Sub
Private Sub munfont_Click()
On Error Resume Next
With CommonDialog1
.Flags = 1
.CancelError= True
.ShowFont
End With
RichTextBox1.Font.Name =
CommonDialog1.FontName
RichTextBox1.Font.Size = CommonDialog1.FontSize
RichTextBox1.Font.Bold = CommonDialog1.FontBold
RichTextBox1.Font.Italic = CommonDialog1.FontItalic
RichTextBox1.Font.Underline =
CommonDialog1.FontUnderline
RichTextBox1.Font.Strikethrough=
CommonDialog1.FontStrikethru
End Sub
Private Sub munpst_Click()
Call mpas
End Sub
8. Private Sub munsave_Click()
On Error GoTo Label
Dim ifile As Integer
Dim savefile As Boolean
Dim txtbox As Object
Dim filepathAs String
Dim append As Boolean
With CommonDialog1
.Flags = 1
.CancelError= True
.Filter = "Text Document(*.txt)|*.txt |All Files(*.*)|*.*"
If m = 1 Then
m = m + 1
. ShowSave
End If
End With
ifile = FreeFile
If append Then
Open CommonDialog1.FileName For
Append As #ifile
Else
OpenCommonDialog1.FileName ForOutput As #ifile
End If
Print #ifile, RichTextBox1.Text
savefile = True
Label:
Close #ifile
Form1.Caption= CommonDialog1.FileTitle + "-Notepad"
End Sub
Private Sub munsele_Click()
Call msel
End Sub
Private Sub munund_Click()
Call und
End Sub
Public Sub und()
If gintIndex= 0 Then Exit Sub
gblnIgnoreChange = True
gintIndex= gintIndex - 1
9. On Error Resume Next
RichTextBox1.TextRTF= gstrStack(gintIndex)
gblnIgnoreChange = False
End Sub
Private Sub new_Click()
On Error Resume Next
m = 1
If RichTextBox1.Text<> "" Then
a = MsgBox("Do you want to save the
changes?",vbYesNoCancel+ vbQuestion,"Save")
If a = vbYes Then
With CommonDialog1
.CancelError = True
.InitDir = "E:"
.Filter = "Text Documents(*.txt)|*.txt | All
Files(*.*)|*.*"
.ShowSave
End With
RichTextBox1.Text= ""
End If
If a = vbNo Then
RichTextBox1.Text= " "
End If
End If
End Sub
Private Sub notepad_Click()
Form2.Show
End Sub
Private Sub open_Click()
On Error Resume Next
With CommonDialog1
.CancelError= True
.InitDir = "E:"
.Filter = "Text Documents(*.txt)|*.txt| All Files(*.*) | *.*"
.ShowOpen
End With
RichTextBox1.LoadFile (CommonDialog1.FileName)
End Sub
10. Private Sub paste_Click()
Call mpas
End Sub
Public Sub mpas()
If Clipboard.GetFormat(vbCFText)Then
RichTextBox1.SelText=
Clipboard.GetText(vbCFText)
End If
End Sub
Private Sub print_Click()
On Error GoTo Label
Dim b, e, n, i As Variant
With CommonDialog1
.Flags = 1
.CancelError= True
.ShowPrinter
b = .FromPage
e = .ToPage
n = .Copies
End With
For i = 1 To n
Printer.Print RichTextBox1.Text
Next
Exit Sub
Label:
Exit Sub
End Sub
Private Sub replace_Click()
Form3.Show
End Sub
Private Sub RichTextBox1_Change()
Dim g As Integer
Dim b As Integer
Dim i As Integer
g = maxUndo
If Not gblnIgnoreChangeThen
gintIndex = gintIndex + 1
If gintIndex>= maxUndo + 1 Then
For b = 0 To maxUndo
11. stackBK(b)= gstrStack(b)
Next b
For i = 0 To maxUndo
If g >= 1 Then
g = g - 1
gstrStack(g)= stackBK(g + 1)
End If
Next i
gintIndex = maxUndo
End If
gstrStack(gintIndex)= RichTextBox1.TextRTF
End If
End Sub
Private Sub saveas_Click()
On Error GoTo Label
Dim ifile As Integer
Dim savefile As Boolean
Dim txtbox As Object
Dim filepathAs String
Dim append As Boolean
With CommonDialog1
.Flags = 1
.CancelError= True
.Filter = "Text Document(*.txt)|*.txt |All Files(*.*)|*.*"
.ShowSave
End With
ifile = FreeFile
If append Then
OpenCommonDialog1.FileName ForAppend As
#ifile
Else
OpenCommonDialog1.FileName ForOutput As #ifile
End If
Print #ifile, RichTextBox1.Text
savefile = True
Label:
Close #ifile
Form1.Caption= CommonDialog1.FileTitle + "-
Notepad"
12. End Sub
Private Sub selectall_Click()
Call msel
End Sub
Public Sub msel()
RichTextBox1.SelStart= 0
RichTextBox1.SelLength= Len(RichTextBox1.Text)
End Sub
Private Sub statusbar_Click()
If statusbar.Checked = True Then
statusbar.Checked = False
StatusBar1.Visible = False
RichTextBox1.Height= Form1.Height- 850
Else
statusbar.Checked = False
statusbar.Checked = True
StatusBar1.Visible = True
RichTextBox1.Height=
RichTextBox1.Height- 375
End If
End Sub
Private Sub timedate_Click()
RichTextBox1.SelText= Now()
End Sub
Private Sub undo_Click()
Call und
End Sub
Private Sub VScroll1_Change()
RichTextBox1.RightMargin = 0
RichTextBox1.Left= 0
End Sub
Private Sub wordwrap_Click()
If wordwrap.Checked = True Then
wordwrap.Checked = False
RichTextBox1.RightMargin=
Screen.Width- (Screen.Width- RichTextBox1.Width- 1000000)
Else
wordwrap.Checked = True
13. RichTextBox1.RightMargin = Screen.Width -
(Screen.Width- RichTextBox1.Width- 6000)
End If
End Sub
About Notepad(Form 2nd)
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Form2.Caption= "AboutAs"
End Sub
14. Replace (Form 3rd)
Option Explicit
Dim lastpos As Integer
Dim findtextAs String
Private Sub Command1_Click()
findtext = Text1.Text
If Check1.Value = vbChecked Then
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext, vbBinaryCompare)
Else
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext, vbTextCompare)
End If
If lastpos > 0 Then
Form1.RichTextBox1.SelStart= lastpos - 1
Form1.RichTextBox1.SelLength= Len(findtext)
Else
MsgBox"Not Found"
End If
End Sub
Private Sub Command2_Click()
Dim fp, a, rp As String
fp = Text1.Text
rp = Text2.Text
15. a = Form1.RichTextBox1.Find(fp)
If a <> -1 Then
a = Form1.RichTextBox1.Find(fp)
Form1.RichTextBox1.SelText= rp
Else
MsgBox"Not Found"
End If
End Sub
Private Sub Command3_Click()
findtext = Text1.Text
lastpos = 0
If Check1.Value = vbChecked Then
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext, vbBinaryCompare)
Else
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext,
vbTextCompare)
End If
If lastpos > 0 Then
Do While lastpos > 0
Form1.RichTextBox1.SelStart= lastpos - 1
Form1.RichTextBox1.SelLength= Len(findtext)
Form1.RichTextBox1.SelText= Text2.Text
If Check1.Value = vbChecked Then
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext, vbBinaryCompare)
Else
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext, vbTextCompare)
End If
If lastpos = 0 Then
MsgBox"All Instances have been
replaced"
Exit Do
End If
Loop
Else
MsgBox"Not Found"
16. End If
Form1.RichTextBox1.SelStart= 0
Form1.RichTextBox1.SelLength= 0
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
Form3.Caption= "Replace"
End Sub
Private Sub Text1_Change()
If Text1 = "" Then
Command1.Enabled= False
Command2.Enabled= False
Command3.Enabled= False
Else
Command1.Enabled= True
Command2.Enabled= True
Command3.Enabled= True
End If
End Sub
Find (Form 4th)
Option Explicit
Dim lastpos As Integer
Dim findtextAs String
Private Sub Command1_Click()
findtext = Text1.Text
If Check1.Value = vbChecked Then
lastpos = InStr(lastpos + 1,
Form1.RichTextBox1.Text,findtext, vbBinaryCompare)
Else
17. lastpos = InStr(lastpos + 1, Form1.RichTextBox1.Text,
findtext, vbTextCompare)
End If
If lastpos > 0 Then
Form1.RichTextBox1.SelStart= lastpos - 1
Form1.RichTextBox1.SelLength= Len(findtext)
Else
MsgBox"Not Found"
End If
Form3.Text1.Text= Text1.Text
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Form4.Caption= "Find"
End Sub