Heres the story...
I am making a notepad thing, and I have come to saving the text into a text file.
It works... Sort of. I can get up the SaveDialog, but whatever I type, the saved filename will just be "1". However, I renamed the file, and the text was written fine. But something is wrong with saving the file.

I dont know...
Here is the save code:
VB Code:
  1. Dim fname As String
  2.         fname = ""
  3.         SaveFileDialog1.Filter = "Rich text documents |*.rtf"
  4.         fname = SaveFileDialog1.ShowDialog()
  5.  
  6.         Dim text As String
  7.         text = RichTextBox1.Text
  8.         FileOpen(1, fname, OpenMode.Append, OpenAccess.Write, OpenShare.Shared)
  9.         Print(1, Me.RichTextBox1.Text)
  10.         FileClose(1)
I guess I am doing something totally wrong.