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...
    ***********************************************
    ***********************************************

Комментарии • 18

  • @utehstr
    @utehstr  6 лет назад +4

    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

    • @ethereal41
      @ethereal41 9 месяцев назад

      hey im getting an overload error with the openfiledialog sub? please could you explain?

    • @ethereal41
      @ethereal41 9 месяцев назад

      nevermind, i called openfiledialog.filenames instead of just filename.

  • @DavidWesleyBenner
    @DavidWesleyBenner 4 года назад

    Fantastic! This is just what I was looking for to add to my current project! Thanks!!!!!

    • @utehstr
      @utehstr  4 года назад

      You're welcome :-)

  • @TamiamiParkFlyers
    @TamiamiParkFlyers 2 года назад

    I'm getting the following error: Value of type 'System.IO.Stream' cannot be converted to 'System.IO.StreamReader'. Help!

  • @wyyden663
    @wyyden663 3 года назад +1

    Thanks Bro

    • @utehstr
      @utehstr  3 года назад

      You're welcome :-)

  • @veyselkucukkaraca8698
    @veyselkucukkaraca8698 2 года назад

    can you share the project with cloud as download?

  • @bobilondon01
    @bobilondon01 3 года назад +1

    can you post source code please

  • @redblue7733
    @redblue7733 3 года назад

    What music is this?

  • @manjulingam6307
    @manjulingam6307 4 года назад

    Kjum... Clear. .. Sluga....

  • @manjulingam6307
    @manjulingam6307 4 года назад

    Kjum.. Clearness erutha.. Nalaerukkumm..

  • @theprodigycoder7554
    @theprodigycoder7554 3 года назад

    send me the source