0

Hello I'm building a small program like notepad and wanted to know how to make it save and load a file

Public Class Form1

    Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
        txtNotes.Text = ""
    End Sub

    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click

    End Sub

    Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
        ofdNotes.OpenFile()
    End Sub
End Class

I don't know how to properly address OpenFileDialog and LoadFileDialog, so i called it ofdNotes and lfdNotes.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by G_Waddell
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.