Results 1 to 2 of 2

Thread: Save to txt file

  1. #1

    Thread Starter
    Junior Member prince_j325's Avatar
    Join Date
    Oct 2010
    Posts
    21

    Question Save to txt file

    Good day Experts!

    Please give me idea how to code this one ...

    Dim Save As New SaveFileDialog
    Save.Title = "Specify Destination Filename"
    Save.Filter = "Text Files|*.txt"
    Save.FilterIndex = 1
    Save.OverwritePrompt = True
    Save.CreatePrompt = True
    If Save.ShowDialog() <> DialogResult.Cancel Then

    'How can I save here my text from my textbox1.text?

    End If

    Thank you for the help...

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Save to txt file

    vb Code:
    1. io.file.writealltext(save.filename,textbox1.text)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width