SlideShare a Scribd company logo
1 of 34
Download to read offline
SUBMITED BY
Deepika Mittal
Bachelor of Computer Application IIl YEAR
Dezyne École College
www.dezyneecole.com
INFORMATION TECHNOLOGY
PROJECT REPORT
Visual Basic PROGRAMMING
Notepad
TOPIC
Visual Basic
Project Report
On
Visual Basic
At
Dezyne Ećole College
Ajmer
Submitted to
Dezyne Ećole College
Towards the
Partial Fulfillment on
Bachelors of Computer Application
By
Deepika Mittal
Dezyne E’cole College
106/10 Civil Line, Ajmer
Tel – 0145-2624679
Www.dezyneecole.com
2016
Acknowledgement
I Deepika Mittal, Student On Dezyne Ećole 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ćole College For Their. Guidance and Contrast Supervision As
Well As For Providing The Necessary Information And Support Regarding
The Completion Of Project
Thank You
Synopsis
This Project Is A Minor. Project Made, Based On The Practical
Concept Of Visual Basic This Project Has Made Our Basic Practical
Concepts On Visual Basic Strong.
Notepad
New
Open
Save
Save As
Print
Exit
Edit
Undo
Cut
Paste
Paste
Delete
Find
Replace
Select All
Time/Date
Format
Font
View – StatusBar
Help – View Help
Source
Dim i As Integer
Dim fin, s As Variant
Dim m%
Option Explicit
Const maxUndo = 150
Dim gblnIgnoreChange As Boolean
Dim gintIndex As Integer
Dim gstrStack(maxUndo) As String
Dim stackBK(maxUndo) As String
Private Sub Form_Activate()
Form1.Caption = "Untitled-Notepad"
m = 1
RichTextBox1.RightMargin = Screen.Width - (Screen.Width -
RichTextBox1.Width - 0)
End Sub
Private Sub mnuprint_Click()
CommonDialog1.Flags = 1
CommonDialog1.ShowPrinter
End Sub
Private Sub mnucopy_Click()
Clipboard.SetText RichTextBox1.SelText
End Sub
Private Sub mnucut_Click()
Clipboard.SetText RichTextBox1.SelText
RichTextBox1.SelText = " "
End SubSub
Private Sub mnudelete_Click()
RichTextBox1.Text = " "
End Sub
Private Sub mnuexit_Click()
If i <> 1 Then
s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel)
If s = 6 Then
CommonDialog1.InitDir = "G:"
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowSave
RichTextBox1.SaveFile CommonDialog1.FileName
Unload Me
i = i + 10
ElseIf s = 7 Then
Unload Me
i = i + 10
End If
i = 0
Else
i = 0
Unload Me
End If
End Sub
Private Sub mnufind_Click()
fin = InputBox("Enter Word", "Find")
RichTextBox1.Find (fin)
End Sub
Private Sub mnufont_Click()
CommonDialog1.Flags = 1
CommonDialog1.ShowFont
RichTextBox1.SelFontName = CommonDialog1.FontName
RichTextBox1.SelBold = CommonDialog1.FontBold
RichTextBox1.SelItalic = CommonDialog1.FontItalic
RichTextBox1.SelUnderline = CommonDialog1.FontUnderline
RichTextBox1.SelStrikeThru = CommonDialog1.FontStrikethru
RichTextBox1.SelFontSize = CommonDialog1.FontSize
End Sub
Private Sub mnunew_Click()
If i <> 0 Then
s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel)
If s = 6 Then
RichTextBox1.Text = " "
CommonDialog1.InitDir = "G:"
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowSave
RichTextBox1.SaveFile CommonDialog1.FileName
i = i - 1
ElseIf s = 7 Then
Form1.RichTextBox1.Text = " "
CommonDialog1.InitDir = "G:"
CommonDialog1.Filter = "TEXT | *.txt"
i = i - 1
End If
Else
Form1.RichTextBox1.Text = " "
i = i + 1
End If
End Sub
Private Sub mnuopen_Click()
If i <> 0 Then
s = MsgBox("Do you Want to Change Your File.", vbYesNoCancel)
If s = 6 Then
RichTextBox1.Text = " "
CommonDialog1.InitDir = "G:"
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowOpen
RichTextBox1.LoadFile (CommonDialog1.FileName)
i = i + 1
End If
Else
CommonDialog1.InitDir = "G:"
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowOpen
RichTextBox1.LoadFile (CommonDialog1.FileName)
i = i + 1
End If
End Sub
Private Sub mnupaste_Click()
RichTextBox1.SelText = Clipboard.GetText
End Sub
Private Sub mnuprint_Click()
CommonDialog1.Flags = 1
CommonDialog1.ShowPrinter
End Sub
Private Sub mnure_Click()
Form2.Show
End Sub
Private Sub mnusave_Click()
If i <> 1 Then
s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel)
If s = 6 Then
CommonDialog1.InitDir = "G:"
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowSave
RichTextBox1.SaveFile (CommonDialog1.FileName)
i = 1
End If
ElseIf i = 1 Then
RichTextBox1.SaveFile (CommonDialog1.FileName)
End If
End Sub
Private Sub mnusaveas_Click()
If i <> 0 Then
s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel)
If s = 6 Then
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowSave
RichTextBox1.SaveFile (CommonDialog1.FileName)
i = i + 1
End If
Else
CommonDialog1.Filter = "TEXT | *.txt"
CommonDialog1.ShowSave
RichTextBox1.SaveFile (CommonDialog1.FileName)
i = i + 1
End If
End Sub
Private Sub mnuseal_Click()
Call msel
End Sub
Public Sub msel()
RichTextBox1.SelStart = 0
RichTextBox1.SelLength = Len(RichTextBox1.Text)
End Sub
Private Sub mnustatus_Click()
If mnustatus.Checked = True Then
mnustatus.Checked = False
Private Sub mnustatus_Click()
If mnustatus.Checked = True Then
mnustatus.Checked = False
StatusBar1.Visible = False
RichTextBox1.Height = Form1.Height - 850
Else
mnustatus.Checked = False
mnustatus.Checked = True
StatusBar1.Visible = True
RichTextBox1.Height = RichTextBox1.Height - 375
End If
End Sub
Private Sub mnutd_Click()
RichTextBox1.Text = Now()
End Sub
Private Sub mnuUndo_Click()
Call undo
End Sub
Private Sub mnuviewhelp_Click()
CommonDialog1.Flags = 1
CommonDialog1.ShowHelp
End Sub
Public Sub undo()
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 mnuword_Click()
If mnuword.Checked = True Then
mnuword.Checked = False
RichTextBox1.RightMargin = Screen.Width - (Screen.Width - RichTextBox1.Width
- 10000000)
Else
mnuword.Checked = True
RichTextBox1.RightMargin = Screen.Width - (Screen.Width - RichTextBox1.Width
- 1)
End If
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 mnuedit_click()
If RichTextBox1.SelLength = 0 Then
mnucut.Enabled = False
mnucopy.Enabled = False
mnudelete.Enabled = True
mnuseal.Enabled = True
ElseIf RichTextBox1.SelLength = Len(RichTextBox1.Text) Then
mnucut.Enabled = True
mnucopy.Enabled = True
mnudelete.Enabled = False
mnuseal.Enabled = False
Else
mnucut.Enabled = True
mnucopy.Enabled = True
mnudelete.Enabled = False
mnuseal.Enabled = True
End If
If Len(Clipboard.GetText(1)) = 0 Then
mnupaste.Enabled = False
Else
mnupaste.Enabled = True
End If
End Sub
THANK YOU

More Related Content

Similar to Deepika Mittal , BCA Third Year

Código Editor Net
Código Editor NetCódigo Editor Net
Código Editor Net
cymbron
 
Trabajo de ept lissethe toro
Trabajo de ept lissethe toroTrabajo de ept lissethe toro
Trabajo de ept lissethe toro
lissethee
 
Inventory management
Inventory managementInventory management
Inventory management
Rajeev Sharan
 
E headline2010 - Presentation Seminar
E headline2010 - Presentation SeminarE headline2010 - Presentation Seminar
E headline2010 - Presentation Seminar
Nuraini Mohd Ghani
 
Android ui dialog
Android ui dialogAndroid ui dialog
Android ui dialog
Krazy Koder
 

Similar to Deepika Mittal , BCA Third Year (20)

Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
 
Sachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third YearSachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third Year
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
 
Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third Year
 
Código Editor Net
Código Editor NetCódigo Editor Net
Código Editor Net
 
Trabajo de ept lissethe toro
Trabajo de ept lissethe toroTrabajo de ept lissethe toro
Trabajo de ept lissethe toro
 
Inventory management
Inventory managementInventory management
Inventory management
 
Android Architecture components
Android Architecture componentsAndroid Architecture components
Android Architecture components
 
Vb file
Vb fileVb file
Vb file
 
E headline2010 - Presentation Seminar
E headline2010 - Presentation SeminarE headline2010 - Presentation Seminar
E headline2010 - Presentation Seminar
 
Ict project pdf
Ict project pdfIct project pdf
Ict project pdf
 
VB Dot net
VB Dot net VB Dot net
VB Dot net
 
Mobile Application Development class 005
Mobile Application Development class 005Mobile Application Development class 005
Mobile Application Development class 005
 
flutteragency-com-handling-events-and-user-input-in-flutter-.pdf
flutteragency-com-handling-events-and-user-input-in-flutter-.pdfflutteragency-com-handling-events-and-user-input-in-flutter-.pdf
flutteragency-com-handling-events-and-user-input-in-flutter-.pdf
 
VB 6
VB 6VB 6
VB 6
 
9 services
9 services9 services
9 services
 
Android ui dialog
Android ui dialogAndroid ui dialog
Android ui dialog
 
How to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your WebsiteHow to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your Website
 

More from dezyneecole

More from dezyneecole (20)

Gracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second YearGracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second Year
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
 
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
 
Gitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 YearGitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 Year
 
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
 
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
 
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
 
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 

Deepika Mittal , BCA Third Year

  • 1. SUBMITED BY Deepika Mittal Bachelor of Computer Application IIl YEAR Dezyne École College www.dezyneecole.com INFORMATION TECHNOLOGY PROJECT REPORT Visual Basic PROGRAMMING Notepad TOPIC Visual Basic
  • 2. Project Report On Visual Basic At Dezyne Ećole College Ajmer Submitted to Dezyne Ećole College Towards the Partial Fulfillment on Bachelors of Computer Application By Deepika Mittal Dezyne E’cole College 106/10 Civil Line, Ajmer Tel – 0145-2624679 Www.dezyneecole.com 2016
  • 3. Acknowledgement I Deepika Mittal, Student On Dezyne Ećole 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ćole 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. Synopsis This Project Is A Minor. Project Made, Based On The Practical Concept Of Visual Basic This Project Has Made Our Basic Practical Concepts On Visual Basic Strong.
  • 6.
  • 10. Print
  • 11. Exit
  • 12. Edit
  • 13. Undo
  • 14. Cut
  • 15. Paste
  • 16. Paste
  • 18. Find
  • 23. Font
  • 26.
  • 27. Source Dim i As Integer Dim fin, s As Variant Dim m% Option Explicit Const maxUndo = 150 Dim gblnIgnoreChange As Boolean Dim gintIndex As Integer Dim gstrStack(maxUndo) As String Dim stackBK(maxUndo) As String Private Sub Form_Activate() Form1.Caption = "Untitled-Notepad" m = 1 RichTextBox1.RightMargin = Screen.Width - (Screen.Width - RichTextBox1.Width - 0) End Sub Private Sub mnuprint_Click() CommonDialog1.Flags = 1 CommonDialog1.ShowPrinter End Sub Private Sub mnucopy_Click() Clipboard.SetText RichTextBox1.SelText End Sub Private Sub mnucut_Click() Clipboard.SetText RichTextBox1.SelText RichTextBox1.SelText = " " End SubSub Private Sub mnudelete_Click() RichTextBox1.Text = " " End Sub Private Sub mnuexit_Click() If i <> 1 Then s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel) If s = 6 Then CommonDialog1.InitDir = "G:"
  • 28. CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowSave RichTextBox1.SaveFile CommonDialog1.FileName Unload Me i = i + 10 ElseIf s = 7 Then Unload Me i = i + 10 End If i = 0 Else i = 0 Unload Me End If End Sub Private Sub mnufind_Click() fin = InputBox("Enter Word", "Find") RichTextBox1.Find (fin) End Sub Private Sub mnufont_Click() CommonDialog1.Flags = 1 CommonDialog1.ShowFont RichTextBox1.SelFontName = CommonDialog1.FontName RichTextBox1.SelBold = CommonDialog1.FontBold RichTextBox1.SelItalic = CommonDialog1.FontItalic RichTextBox1.SelUnderline = CommonDialog1.FontUnderline RichTextBox1.SelStrikeThru = CommonDialog1.FontStrikethru RichTextBox1.SelFontSize = CommonDialog1.FontSize End Sub Private Sub mnunew_Click() If i <> 0 Then s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel) If s = 6 Then RichTextBox1.Text = " " CommonDialog1.InitDir = "G:" CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowSave RichTextBox1.SaveFile CommonDialog1.FileName i = i - 1 ElseIf s = 7 Then
  • 29. Form1.RichTextBox1.Text = " " CommonDialog1.InitDir = "G:" CommonDialog1.Filter = "TEXT | *.txt" i = i - 1 End If Else Form1.RichTextBox1.Text = " " i = i + 1 End If End Sub Private Sub mnuopen_Click() If i <> 0 Then s = MsgBox("Do you Want to Change Your File.", vbYesNoCancel) If s = 6 Then RichTextBox1.Text = " " CommonDialog1.InitDir = "G:" CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowOpen RichTextBox1.LoadFile (CommonDialog1.FileName) i = i + 1 End If Else CommonDialog1.InitDir = "G:" CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowOpen RichTextBox1.LoadFile (CommonDialog1.FileName) i = i + 1 End If End Sub Private Sub mnupaste_Click() RichTextBox1.SelText = Clipboard.GetText End Sub Private Sub mnuprint_Click() CommonDialog1.Flags = 1 CommonDialog1.ShowPrinter End Sub Private Sub mnure_Click() Form2.Show End Sub
  • 30. Private Sub mnusave_Click() If i <> 1 Then s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel) If s = 6 Then CommonDialog1.InitDir = "G:" CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowSave RichTextBox1.SaveFile (CommonDialog1.FileName) i = 1 End If ElseIf i = 1 Then RichTextBox1.SaveFile (CommonDialog1.FileName) End If End Sub Private Sub mnusaveas_Click() If i <> 0 Then s = MsgBox("Do you Want to Save Your File.", vbYesNoCancel) If s = 6 Then CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowSave RichTextBox1.SaveFile (CommonDialog1.FileName) i = i + 1 End If Else CommonDialog1.Filter = "TEXT | *.txt" CommonDialog1.ShowSave RichTextBox1.SaveFile (CommonDialog1.FileName) i = i + 1 End If End Sub Private Sub mnuseal_Click() Call msel End Sub Public Sub msel() RichTextBox1.SelStart = 0 RichTextBox1.SelLength = Len(RichTextBox1.Text) End Sub Private Sub mnustatus_Click() If mnustatus.Checked = True Then mnustatus.Checked = False
  • 31. Private Sub mnustatus_Click() If mnustatus.Checked = True Then mnustatus.Checked = False StatusBar1.Visible = False RichTextBox1.Height = Form1.Height - 850 Else mnustatus.Checked = False mnustatus.Checked = True StatusBar1.Visible = True RichTextBox1.Height = RichTextBox1.Height - 375 End If End Sub Private Sub mnutd_Click() RichTextBox1.Text = Now() End Sub Private Sub mnuUndo_Click() Call undo End Sub Private Sub mnuviewhelp_Click() CommonDialog1.Flags = 1 CommonDialog1.ShowHelp End Sub Public Sub undo() 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 mnuword_Click() If mnuword.Checked = True Then mnuword.Checked = False RichTextBox1.RightMargin = Screen.Width - (Screen.Width - RichTextBox1.Width - 10000000) Else mnuword.Checked = True RichTextBox1.RightMargin = Screen.Width - (Screen.Width - RichTextBox1.Width - 1)
  • 32. End If 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 mnuedit_click() If RichTextBox1.SelLength = 0 Then mnucut.Enabled = False mnucopy.Enabled = False mnudelete.Enabled = True mnuseal.Enabled = True ElseIf RichTextBox1.SelLength = Len(RichTextBox1.Text) Then mnucut.Enabled = True mnucopy.Enabled = True mnudelete.Enabled = False mnuseal.Enabled = False Else mnucut.Enabled = True
  • 33. mnucopy.Enabled = True mnudelete.Enabled = False mnuseal.Enabled = True End If If Len(Clipboard.GetText(1)) = 0 Then mnupaste.Enabled = False Else mnupaste.Enabled = True End If End Sub