ActiveX controls Browse for Folder Dialog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marc

    ActiveX controls Browse for Folder Dialog

    Hi,

    I have 2 activex controls on my form that I need to open up a common
    dialog box and select/browse files, then populate two text fields.

    The first one I have working:

    The first activex is set up to open up the Select File Dialog box.
    The properties of the activex are as follows:
    OLE Class CommonDialog
    Class MSCOMDLG.COMMON DIALOG

    Code:
    acxDialog.ShowO pen
    txtDataFileLoca tion.SetFocus
    txtDataFileLoca tion.Text = acxDialog.FileN ame

    What I can't figure out is what needs to happen for the Browse for
    folder Dialog box to appear with the second activeX control named
    acxSaveLoc.

    I have looked all over for the method/classes and can not find it when
    using an Active X control

    I assume I keep the OLE Class the same and have to change
    acxSaveLoc.Show Open to something other than ShowOpen, but I can't find
    it!

    Any help would be greatly appreciated!


    Marc Welty

    "Two Pretzals were walking the street and one was a(salted)...."

  • pietlinden@hotmail.com

    #2
    Re: ActiveX controls Browse for Folder Dialog

    don't bother with ActiveX controls. They're a PITA to register etc,
    and you don't need it.



    Comment

    • pietlinden@hotmail.com

      #3
      Re: ActiveX controls Browse for Folder Dialog

      Try either BrowseFolderAPI or OpenFileAPI at mvps.org/access

      Comment

      • marc

        #4
        Re: ActiveX controls Browse for Folder Dialog


        pietlinden@hotm ail.com wrote:
        Try either BrowseFolderAPI or OpenFileAPI at mvps.org/access
        This will work, but I would prefer not putting copyrighted code into my
        application. Not that I don't want to give credit to where credit is
        due, but it is set up based off of ActiveX controls, and that is what
        we use. We have worked around all the problems associated with them, so
        if anyone knows the code that would just open the browse for folder
        dialog box described above, I would really appreciate it.

        Im guessing a different OLE Class, and one method on the active x woudl
        do it, just like .ShowOpen.

        Thanks in advance!

        Marcos

        What do you call chess that is not yours? "Not"cho cheese!

        Comment

        • marc

          #5
          Re: ActiveX controls Browse for Folder Dialog


          pietlinden@hotm ail.com wrote:
          Try either BrowseFolderAPI or OpenFileAPI at mvps.org/access
          This will work, but I would prefer not putting copyrighted code into my
          application. Not that I don't want to give credit to where credit is
          due, but it is set up based off of ActiveX controls, and that is what
          we use. We have worked around all the problems associated with them, so
          if anyone knows the code that would just open the browse for folder
          dialog box described above, I would really appreciate it.

          Im guessing a different OLE Class, and one method on the active x woudl
          do it, just like .ShowOpen.

          Thanks in advance!

          Marcos

          What do you call chess that is not yours? "Not"cho cheese!

          Comment

          Working...