Visual Basic .NET | Create a Text Editor with RichTextBox in Visual Basic .NET
HTML-код
- Опубликовано: 10 сен 2024
- Visual Basic .NET | Create a Text Editor with RichTextBox in Visual Basic .NET.
***********************************************
Download Visual Studio : www.visualstud...
***********************************************
Icon in this project : www.iconfinder...
***********************************************
Opening Intro Template : • Top 10 Free RUclips In...
***********************************************
Music Background :
Track: Elektronomia - The Other Side [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Elektronomia - The Oth...
Free Download / Stream: ncs.io/TheOther...
Song: Elektronomia & JJD - Free [NCS Release]
Music provided by NoCopyrightSounds.
Video: • Elektronomia & JJD - F...
Song: JJD - Future [NCS Release]
Music provided by NoCopyrightSounds.
Video Link: • JJD - Future [NCS Rele...
Download: NCS.lnk.to/Future
Song: Malik Bash - Ghosts [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Malik Bash - Ghosts | ...
Download/Stream: ncs.io/GhostsCr
Track: Phantom Sage - Kingdom (feat. Miss Lina) [NCS Release]
Music provided by NoCopyrightSounds.
Free Download / Stream: ncs.io/KingdomYO
Track: Phantom Sage - Our Lives Past (feat. Emily Stiles) [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Phantom Sage - Our Liv...
Free Download / Stream: ncs.io/OurLives...
***********************************************
***********************************************
Thanks for watching & don't forget to like, comment and Subscribe...
***********************************************
***********************************************
I forgot some code, this fixes it :
Private Sub SaveToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles SaveToolStripMenuItem.Click
If ind = 1 Then
SaveFileDialog1.FileName = url
ind = 0
End If
SaveFileDialog1.Title = "Save text Files"
SaveFileDialog1.CheckFileExists = True
SaveFileDialog1.CheckPathExists = True
SaveFileDialog1.DefaultExt = "txt"
SaveFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"
SaveFileDialog1.FilterIndex = 1
SaveFileDialog1.RestoreDirectory = True
Try
RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText)
Catch ex As Exception
Call SaveAsToolStripMenuItem_Click(Me, e)
End Try
End Sub
and find this:
Private Sub DeleteToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles DeleteToolStripMenuItem.Click
If RichTextBox1.SelectionLength > 0 Then
RichTextBox1.Text = ""
End If
End Sub
replace with this:
Private Sub DeleteToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles DeleteToolStripMenuItem.Click
Me.RichTextBox1.SelectedText = ""
End Sub
hey im getting an overload error with the openfiledialog sub? please could you explain?
nevermind, i called openfiledialog.filenames instead of just filename.
Fantastic! This is just what I was looking for to add to my current project! Thanks!!!!!
You're welcome :-)
I'm getting the following error: Value of type 'System.IO.Stream' cannot be converted to 'System.IO.StreamReader'. Help!
Nevermind, fixed it!
Thanks Bro
You're welcome :-)
can you share the project with cloud as download?
can you post source code please
What music is this?
Kjum... Clear. .. Sluga....
Kjum.. Clearness erutha.. Nalaerukkumm..
send me the source