Showing results for
Do you mean

# Folderbrowserdialog : SendKeys VB.Net

[ Edited ]

I have a problem with the selection , the dialog dialog does not scroll to selected folder .I believe that it is a known problem.

A solution it's "sending keys" .I try to know if i can do the same thing with nx open .I tried but it did not work.

My code below :

``` Dim FlBrowserDialog As FolderBrowserDialog = New System.Windows.Forms.FolderBrowserDialog

With FlBrowserDialog
.SelectedPath = "C:\application\NX11\MACH\auxiliary"
.ShowNewFolderButton = True
End With

SendKeys.SendWait("{TAB}{TAB}{DOWN}{UP}")

If FlBrowserDialog.ShowDialog = System.Windows.Forms.DialogResult.OK Then
dir = FlBrowserDialog.SelectedPath
Else
Exit Sub
End If```

@mkn