title: Save Data to text tile using SaveFileDialog?
body: <p>I have already viewed the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.savefiledialog.aspx" rel="nofollow">MSDN Example</a> but I am still having problems. </p>
  
  <p>I created a super-simple program to multiply two numbers, and display the output in the textbox. Now I need to be able to read that text box value and put the value in a text file, bringing up the save to file dialog when the "Save To File" button is clicked.</p>
  
  <pre><code>Private Sub MutiplyBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MutiplyBtn.Click
      Dim FirstNum As Double = Num1.Text
      Dim SecondNum As Double = Num2.Text
      Dim Answer2 As Double = FirstNum * SecondNum
      Answerbox.Text = Answer2
  End Sub
  
  Private Sub SaveResultToFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveResultToFile.Click
      Dim myStream As Stream
      Dim saveFileDialog1 As New SaveFileDialog()
  
      saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"
      saveFileDialog1.FilterIndex = 2
      saveFileDialog1.RestoreDirectory = True
  
      If saveFileDialog1.ShowDialog() = DialogResult.OK Then
          myStream = saveFileDialog1.OpenFile()
          If (myStream IsNot Nothing) Then
              System.IO.File.WriteAllText(Answerbox.Text)
              myStream.Close()
          End If
      End If
  End Sub
  </code></pre>
  
  <p>Currently, Visual Studio is giving me an error: <code>Overload resolution failed because no accessible 'WriteAllText' accepts this number of arguments.</code></p>