Sunday, 22 July 2012

special folders in

In this tutorial, we cover using the special folders to retrieve the path of a special folder on a machine. when you want open folder as default folder like my documents, downloads etc.

Copy and paste below Code:

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim thepath As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)

        Process.Start(thepath & "\image.jpg")
    End Sub

End Class

No comments:

Post a comment