[Help]Save Text to Desktop[Solved]
How do you make an option in vb.net to save text to desktop?
did you google yet?...
google for streamwriter.
Here you go. Thank me please
Change the user name to yours
[php]Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim TextFile As New StreamWriter("c:\Users\Zack\Desktop\test.txt")
TextFile.WriteLine("Text here")
' make more of these TextFile.WriteLine("Text here")to get more lines.
TextFile.Close()
End Sub
End Class[/php]
You copied some of my code nextgen . LOL
Its MSDN Standard, But yes I part of your above example to make sense of the prior :d
Woot Nextgen1 used one of my examples WOOT. HAH thanks
OR
[php] My.Computer.FileSystem.WriteAllText(My.Computer.Fi leSystem.SpecialDirectories.Desktop & "\filename.txt", "Text here...", False)
[/php]