472,126 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 1294
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.