File open Dialogue box

Hi all,

I’m looking to add the standard windows dialogue box for opening / saving files to my gadget.

 

I know that this can be done in xp using either the "UserAccounts.CommonDialogue" ActiveX Control or the "SAFRCFileDlg.fileopen" Control, but neither of these work on vista.

 

Any help as to what is the new activeX control, how to find what activeX controls are installed on vista or any api's (tried msdn library) would be gratefully received.

 

Dave



Answer this question

File open Dialogue box

  • DSent

    Can you not use the Sidebar file dialogue

    var cfItem = System.Shell.chooseFile(true, "All Files:*.*::", "", "");

    if (cfItem.path != "")
    {
    //do something with cfItem.path
    }


  • MgManoj

    Thanks soo much for that, I've been trying so hard looking for an activeX control to do it, the answer was staring me in the face.

    Brilliant, thanks again


  • File open Dialogue box