good morning all :)
wondering this:
when you open Microsoft word, under file you have an option to save...and an option to save as.
I am creating a notepad and would also like to have both options in it as well.
seems to me though that they both work the same way. LOL when I open my word and type something and then hit save..i get a dialog box where I can type in the name I want to give it..and the same thing happens in save as..
so really I dont understand these options..only that people are use to seeing both options!
here is my code I am using for save:
Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
Try
Dim dlg As SaveFileDialog = New SaveFileDialog
dlg.Title = "Save"
dlg.Filter = "Rich Text Files (*.rtf)|*.rtf"
If dlg.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
RichTextBox1.SaveFile(dlg.FileName, RichTextBoxStreamType.RichText)
End If
Catch ex As Exception : End Try
End Sub
So theoretically cant I just add a save as option in my menu and paste this code into it as well??? or do I just not get it LOL