Cancel
Showing results for 
Search instead for 
Did you mean: 

Folderbrowserdialog : SendKeys VB.Net

Legend
Legend

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

link : FolderBrowserDialog.html

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
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com