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.
The document is a Visual Basic program for a hotel reservation system. It allows users to enter a guest name, select a room type and number, and pick check-in and check-out dates. It then calculates the room rate, number of nights stayed, and any applicable discounts (0-75% off for long stays). The total payment due is displayed along with a record of the reservation added to several list boxes.
The document contains code for a password protected form that allows the user to log in with their username and password. It also contains code for a main form that collects customer information like name, address, phone number and validates the required fields. The main form allows the user to navigate to additional forms to select snowboards, bindings, boots and other items.
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.
The document contains the code for a basic calculator application. It defines variables to store the total, operation, and second total. It includes subroutines for each number and operation button that append the value to a text box. The equal button routine performs the calculation based on the stored operation and totals, displays the result, and resets for the next operation.
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
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.
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 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.
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.
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.
The document contains 13 programs with Visual Basic code and output descriptions. The programs cover topics like printing series, simple calculations, timers, controls like checkboxes and option buttons, font styling, puzzles, and menus. Each program contains the code, input, and output sections to demonstrate the programming concepts.
The document discusses various aspects of using Visual Basic 2008 and Microsoft Access 2007 for GUI and database development. It covers topics like Visual Basic basics, the Visual Basic 2008 interface and tools, using forms and controls in Access 2007, creating tables and relationships in a Access 2007 database, and includes examples of Visual Basic and VBA code for forms interacting with an Access 2007 backend database.
The document discusses various topics related to GUI Visual Basic 2008 and Microsoft Office Access 2007. It includes sections on Visual Basic, Access 2007 features like tables, queries, forms and reports. It also includes code examples for forms in Visual Basic to manage customer, car and rent data in an Access 2007 database. The code shows how to search, add, update and delete records using buttons and text boxes on the forms.
The document is a Visual Basic program for a hotel reservation system. It allows users to enter a guest name, select a room type and number, and pick check-in and check-out dates. It then calculates the room rate, number of nights stayed, and any applicable discounts (0-75% off for long stays). The total payment due is displayed along with a record of the reservation added to several list boxes.
The document contains code for a password protected form that allows the user to log in with their username and password. It also contains code for a main form that collects customer information like name, address, phone number and validates the required fields. The main form allows the user to navigate to additional forms to select snowboards, bindings, boots and other items.
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.
The document contains the code for a basic calculator application. It defines variables to store the total, operation, and second total. It includes subroutines for each number and operation button that append the value to a text box. The equal button routine performs the calculation based on the stored operation and totals, displays the result, and resets for the next operation.
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
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.
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 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.
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.
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.
The document contains 13 programs with Visual Basic code and output descriptions. The programs cover topics like printing series, simple calculations, timers, controls like checkboxes and option buttons, font styling, puzzles, and menus. Each program contains the code, input, and output sections to demonstrate the programming concepts.
The document discusses various aspects of using Visual Basic 2008 and Microsoft Access 2007 for GUI and database development. It covers topics like Visual Basic basics, the Visual Basic 2008 interface and tools, using forms and controls in Access 2007, creating tables and relationships in a Access 2007 database, and includes examples of Visual Basic and VBA code for forms interacting with an Access 2007 backend database.
The document discusses various topics related to GUI Visual Basic 2008 and Microsoft Office Access 2007. It includes sections on Visual Basic, Access 2007 features like tables, queries, forms and reports. It also includes code examples for forms in Visual Basic to manage customer, car and rent data in an Access 2007 database. The code shows how to search, add, update and delete records using buttons and text boxes on the forms.
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.
The document contains source code and instructions for programming exercises in Visual Basic (VB). It includes 14 exercises ranging from basic programs like printing sentences to more complex programs like an online examination system with a timer and calculator. The exercises cover topics like string manipulation, conditional statements, controls and forms in VB. The document provides the algorithm, source code, and expected output for each programming exercise to help learn VB programming concepts.
This document contains the source code for an application called "Travel App" created using visual programming. It includes code for various forms like the login form, splash screen, customer form, transaction form, route form, price form and about form. The code handles form loading, navigation between forms, adding/deleting customer records from the database and calculating ticket prices based on routes. The author of the application is Muslih Hidayat with student number 1101169 from Sekolah Tinggi Manajemen Informatika dan Komputer Nurdin Hamzah.
The document contains code for several programs:
1. A billing program that allows adding items to a grid and calculates totals.
2. A calculator program with buttons for numbers and operations.
3. A program that calculates percentages of different products in a total.
4. A program that draws circles in an area and changes the radius on button clicks.
5. A screensaver program that draws random shapes on a timer in an area.
6. A digital clock program.
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.
Java Svet - Communication Between Android App ComponentsAleksandar Ilić
Presentation about how to build flexible (using fragments), smooth (using async tasks and intent services) and "data up to date" (using loaders) Android applications.
Java Svet - Communication Between Android App ComponentsPSTechSerbia
Presentation about how to build flexible (using fragments), smooth (using async tasks and intent services) and "data up to date" (using loaders) Android applications.
This document provides instructions and code examples for 8 lab exercises involving Visual Basic programming. Exercise 1 demonstrates using text boxes and command buttons. Exercise 2 loads multiple forms. Exercise 3 creates a timer program. Exercise 4 demonstrates command buttons and text manipulation. Exercise 5 involves list boxes and combo boxes. Exercise 6 builds a basic calculator application using arrays. Exercise 7 demonstrates string operations and conversions using a custom class. Exercise 8 uses picture boxes and labels to demonstrate color values.
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
it describes the bony anatomy including the femoral head , acetabulum, labrum . also discusses the capsule , ligaments . muscle that act on the hip joint and the range of motion are outlined. factors affecting hip joint stability and weight transmission through the joint are summarized.
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
How to Make a Field Mandatory in Odoo 17Celine George
In Odoo, making a field required can be done through both Python code and XML views. When you set the required attribute to True in Python code, it makes the field required across all views where it's used. Conversely, when you set the required attribute in XML views, it makes the field required only in the context of that particular view.
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.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Walmart Business+ and Spark Good for Nonprofits.pdfTechSoup
"Learn about all the ways Walmart supports nonprofit organizations.
You will hear from Liz Willett, the Head of Nonprofits, and hear about what Walmart is doing to help nonprofits, including Walmart Business and Spark Good. Walmart Business+ is a new offer for nonprofits that offers discounts and also streamlines nonprofits order and expense tracking, saving time and money.
The webinar may also give some examples on how nonprofits can best leverage Walmart Business+.
The event will cover the following::
Walmart Business + (https://business.walmart.com/plus) is a new shopping experience for nonprofits, schools, and local business customers that connects an exclusive online shopping experience to stores. Benefits include free delivery and shipping, a 'Spend Analytics” feature, special discounts, deals and tax-exempt shopping.
Special TechSoup offer for a free 180 days membership, and up to $150 in discounts on eligible orders.
Spark Good (walmart.com/sparkgood) is a charitable platform that enables nonprofits to receive donations directly from customers and associates.
Answers about how you can do more with Walmart!"
Communicating effectively and consistently with students can help them feel at ease during their learning experience and provide the instructor with a communication trail to track the course's progress. This workshop will take you through constructing an engaging course container to facilitate effective communication.
Constructing Your Course Container for Effective Communication
Sudarshan Joshi , BCA Third Year
1. SUBMITED BY
Sudarshan Joshi
Bachelor of Computer Application II YEAR
Dezyne E’cole College
www.dezyneecole.com
INFORMATION TECHNOLOGY
PROJECT REPORT
Visual Basic PROGRAMMING
Notepad
TOPIC
VISUAL BASIC
2. Project Report
On
Visual Basic Programming
At
Dezyne E’cole College
Ajmer
Submitted to
Dezyne E’cole College
Towards the
Partial Fulfillment on
Bachelor of Computer Application
By
Sudarshan Joshi
Dezyne E’cole College
106/10 Civil Line, Ajmer
Tel – 0145-2624679
Www.dezyneecole.com
2017-18
3. Acknowledgement
I Sudarshan Joshi, Student On Dezyne E’cole College, An Extremely
Grateful To Each And Every Individual. Who Has Contributed. In
Successful Completion Of My Project. I Express My Gratitude
Towards Dezyne E’cole College For Their. Guidance and Contrast
Supervision As Well As For Providing The Necessary Information And
Support Regarding The Completion Of Project
Thank You
4. 1|P a g e
Synopsis
This Project Is A Minor. Project Made, Based On The Practical
Concept Of VB This Project Has Made Our Basic Practical Concepts
On VB Strong
7. 4|P a g e
Dim rp, fp, a As Variant
Dim m%, b%, c%, fd%, d%
Option Explicit
Const maxUndo = 50
Dim gblnIgnoreChange As Boolean
Dim gintIndex As 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.SetText RichTextBox1.SelText
End Sub
Private Sub cut_Click()
Call mcut
End Sub
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
8. 5|P a g e
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
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.SetText RichTextBox1.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
9. 6|P a g e
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("Enter Word", "Find")
RichTextBox1.Find (fd)
End Sub
Private Sub munfindnext_Click()
Form4.Show
End Sub
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
10. 7|P a g e
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
Private Sub munsave_Click()
On Error GoTo Label
Dim ifile As Integer
Dim savefile As Boolean
Dim txtbox As Object
Dim filepath As 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
Open CommonDialog1.FileName For Output As #ifile
End If
Print #ifile, RichTextBox1.Text
11. 8|P a g e
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
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
12. 9|P a g e
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
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
13. 10|P a g e
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 gblnIgnoreChange Then
gintIndex = gintIndex + 1
If gintIndex >= maxUndo + 1 Then
For b = 0 To maxUndo
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 filepath As String
Dim append As Boolean
With CommonDialog1
.Flags = 1
14. 11|P a g e
.CancelError = True
.Filter = "Text Document(*.txt)|*.txt |All Files(*.*)|*.*"
.ShowSave
End With
ifile = FreeFile
If append Then
Open CommonDialog1.FileName For Append As #ifile
Else
Open CommonDialog1.FileName For Output As #ifile
End If
Print #ifile, RichTextBox1.Text
savefile = True
Label:
Close #ifile
Form1.Caption = CommonDialog1.FileTitle + "-Notepad"
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()
15. 12|P a g e
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
RichTextBox1.RightMargin = Screen.Width - (Screen.Width -
RichTextBox1.Width - 6000)
End If
End Sub
Replace Form
Option Explicit
Dim lastpos As Integer
Dim findtext As 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
16. 13|P a g e
Private Sub Command2_Click()
Dim fp, a, rp As String
fp = Text1.Text
rp = Text2.Text
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"
17. 14|P a g e
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
Option Explicit
Dim lastpos As Integer
Dim findtext As 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
18. 15|P a g e
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