How to open Run dialog

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Is it possible to open the run dialog box from code and execute a command?

Thanks
 
Well, you can probably PInvoke it (see
http://www.nirsoft.net/vb/shell32dlg.html for a ?VB6? example) - not sure
there is a .Net wrapper built into the framework, but it wouldn't be hard to
code from scratch with a textbox, a file-open dialog (on browse) and
Process.Start

Marc
 
alex said:
Is it possible to open the run dialog box from code and execute a command?

IIRC this is possible using p/invoke + an undocumented function, but if you
only want to start another application I suggest to use
'System.Diagnostics.Process.Start'.
 
You can try to use our Dialog Workshop .NET product. It contains RunDialog
component which does exactly what you need. Also many other powerful dialog
components are available (including Open/Save, Print, etc.).

Please visit http://www.componentage.com for details.

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top