Linny
Junior Member
Posts: 263
inherit
115575
0
Jul 30, 2012 13:11:24 GMT -8
Linny
263
December 2007
linny58
|
Post by Linny on Apr 8, 2010 15:12:46 GMT -8
Hey, Once again I return with another problem, this time on visual basic. I bought a book last week on the language, so anyway I'm creating a very simple text editor but I have come across a problem with my open and save buttons. Basically once you click the save button the save as windows explorer (?) opens and then when you click save another window opens. here is the code Private Sub SaveToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripButton.Click SaveFile() End Sub Private Sub SaveFile() SaveFileDialog1.Filter = "Text Files | *.txt" If SaveFileDialog1.ShowDialog = _ Windows.Forms.DialogResult.OK Then RichTextBox1.SaveFile(OpenFileDialog1.FileName, _ RichTextBoxStreamType.PlainText) End If End Sub
I have uploaded my application so you can see it for yourself (It isn't fully finished only a 1.0.0.11) qs.mikewhiskey2.com/pbs.zip
|
|