:wave: i have a code Me.FolderBrowserDialog1.ShowDialog() where in the event handler button1 but i want to appear the selected folder in the textbox1 how this can be??? thanks
Printable View
:wave: i have a code Me.FolderBrowserDialog1.ShowDialog() where in the event handler button1 but i want to appear the selected folder in the textbox1 how this can be??? thanks
:wave:
just replace thewithVB Code:
Me.FolderBrowserDialog1.ShowDialogVB Code:
If Me.FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Textbox1.text = Me.FolderBrowserDialog1.SelectedPath End If
:)
oops
VB Code:
Private fbrowser As New Windows.Forms.FolderBrowserDialog Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click fbrowser.ShowDialog() If Not fbrowser.SelectedPath = String.Empty Then Me.TextBox1.Text = fbrowser.SelectedPath End If End Sub