4
Contributors
4
Replies
14
Views
7 Years
Discussion Span
Last Post by Smith5646
0

Assuming you are using a SaveFileDialog, try .InitialDirectory = "yourpath"

how to set destination directory path to save file

0

If this doesn’t help you, please explain your question in more detail

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim fbd As New FolderBrowserDialog
        If fbd.ShowDialog = Windows.Forms.DialogResult.OK Then
            Console.WriteLine("Selected FolderPath: " & fbd.SelectedPath)
            IO.File.Create(fbd.SelectedPath & "\Test.txt")
            Console.WriteLine(fbd.SelectedPath & "\Test.txt Created")
        End If

    End Sub
0

i have a question that
i have installed vb .net in some other folder other than c how can i set the path in environment variables to compile and run my programs....
m i clear. ??
plz do reply....

0

I suggest that you create a new thread for this question as it has nothing to do with this thread and probably won't get answered here.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.