469,625 Members | 1,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

How can I create the "Save" option in vb.net(Visual Studio 2008)?

Ajay Bhalala
119 64KB
It's urgent please help!

I want to create the "Save" option for the small
Notepad(in vb.net)

I have created this as follows...

Expand|Select|Wrap|Line Numbers
  1. If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
  2.             My.Computer.FileSystem.WriteAllText(SaveFileDialog1.FileName, RichTextBox1.Text, True)
  3.         End If
  4.  
but there is a problem in the "Save" option...

If the user once save the file, then the user make changes in this file in which he was saved...
and then he save the existing file with the changes then one more time "Save As" dialogbox is opens and file is saved as another new file.

In short, the "Save" option is work like the "Save As" option. So How can I create the "Save" option in vb.net(Visual Studio 2008)?


And I also want to create the following options for the notepad

In Edit Menu
• Undo
• Delete
• Find
• Find Next
• Replace
• Go To
• Time/Date

In Format Menu
• Font
Hoe can I open the font dialog?

In View Menu
• Status Bar
Which property I have to use to show or hide the statusbar?

In Help Menu
• View Help
• About Notepad
Can I open the notepad help as the dialog-boxes?
I mean there is any method available for the "notepad help" like the show dialog method?

please help me for this...
It's urgent please help.
Nov 15 '14 #1
1 1242
Ajay Bhalala
119 64KB
Please anyone can help me on this topic? I want the help from any of you. please help.
Nov 20 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by =?iso-8859-1?Q?Vicente_Garc=EDa?= | last post: by
1 post views Thread by Steve Harclerode | last post: by
1 post views Thread by Abhijit D. Babar | last post: by
6 posts views Thread by Curious | last post: by
reply views Thread by Mangotree | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.