Visual Basic 2010 Tutorials -- Save and Open Dialog [1080p HD]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,554
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 9, 2010

Go to http://www.youtube.com/watch?v=oHg5SJYRHA0 if the code does not have line breaks. AND DO NOT SAY I STOLE THE CODE FROM THE SITE. IT IS MY SITE.

Open
Dim Open As New OpenFileDialog() Dim myStreamReader As System.IO.StreamReader Open.Filter = "Rich Text Format [*.rtf*]|*.rtf|All Files [*.*]|*.*" Open.CheckFileExists = True Open.Title = "Open" Open.ShowDialog(Me) Try Open.OpenFile() myStreamReader = System.IO.File.OpenText(Open.FileName) RichTextBox1.Rtf = myStreamReader.ReadToEnd() Catch ex As Exception End Try

Save
Dim Save As New SaveFileDialog() Dim myStreamWriter As System.IO.StreamWriter Save.Filter = "Rich Text Format [*.rtf*]|*.rtf|All Files [*.*]|*.*" Save.CheckPathExists = True Save.Title = "Save" Save.ShowDialog(Me) Try myStreamWriter = System.IO.File.AppendText(Save.FileName) myStreamWriter.Write(RichTextBox1.Rtf) myStreamWriter.Flush() Catch ex As Exception End Try

Category:

Music

Tags:

License:

Standard YouTube License

  • likes, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (DrawingDrewfly)

  • why is the first related video "Vaginal Scan" For Me

  • @HamishWare It is for everyone. I don't know what the hell put it there.

  • HELP ME!

    all i want to do is it to open a picture file when i press a button, i have tried loads but nothing works, please reply some code to open a file ty

  • @rockpig57 I'll make a tutorial some day, but for now I'll say that I can suggest a Picture box and the same code, but with some adjustments for a Picture Box.

Video Responses

see all

All Comments (37)

Sign In or Sign Up now to post a comment!
  • Nice Vid!

    What are the songs called?

    I might use them in my next keygen :P

  • @TheMedic1231 then click the link in description and copy it, youll just have to. you probs could not read the with the bad quality.

  • @DrawingDrewfly I did type it in tho, i didnt copy and paste, i never do...

  • @TheMedic1231 Thats because you need to type it in! It wont work if you copy and paste it. Thats why!

  • This isnt working for me, the contents of the TRY in the Save button code is all wrong according to visual basic 2010 express...

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more