1 Attachment(s)
Re: [RESOLVED] Open folder
How to change this title name "Browse for folder" to another name
Re: [RESOLVED] Open folder
I think he means change the Title bar text of the dialog, tho not sure why anyone would want to change it, it is a "browse for folder" dialog, why confuse things by changing it?:confused:
Re: [RESOLVED] Open folder
Because I want to change to my local language :D
Re: [RESOLVED] Open folder
How do I add a "new folder" to the left of the OK and Cancel buttons?
Re: [RESOLVED] Open folder
You need to pass another flag to BrowseInfo type:
Code:
Private Const BIF_NEWDIALOGSTYLE = &H40
Re: [RESOLVED] Open folder
Re: [RESOLVED] Open folder
Hmmm, I added it in the same section as similar lines (those that started "Private Const BIF_") and it doesn't seem to make a difference, I still don't get a "new folder" icon :-)
Re: [RESOLVED] Open folder
Your list of flags may look like this:
Code:
Private Const BIF_RETURNONLYFSDIRS = 1
Private Const BIF_DONTGOBELOWDOMAIN = 2
Private Const BIF_EDITBOX = &H10
Private Const BIF_VALIDATE = &H20
Private Const BIF_NEWDIALOGSTYLE = &H40
Private Const BIF_BROWSEFORCOMPUTER = &H1000
'-------------------
With tBrowseInfo
.hWndOwner = Me.hWnd
.ulFlags = BIF_RETURNONLYFSDIRS & BIF_DONTGOBELOWDOMAIN & _
BIF_EDITBOX & BIF_VALIDATE & BIF_NEWDIALOGSTYLE & _
BIF_BROWSEFORCOMPUTER
End With
Re: [RESOLVED] Open folder
I am using the exact same code as listed near the top by Hack.
It has ".ulFlags = BIF_RETURNONLYFSDIRS" which I replaced with ".ulFlags = BIF_RETURNONLYFSDIRS & BIF_NEWDIALOGSTYLE" and it hasn't made any difference...BIF_NEWDIALOGSTYLE is in the list of CONSTs.
This is all stuff I've not done before, as you can guess :-)
Re: [RESOLVED] Open folder
Sorry, my mistake :blush: - you need to use th OR operator. Also, for simplicity you may declare another const that is a combination of several other:
Code:
Private Const BIF_SHOWMAKENEW As Long = (BIF_NEWDIALOGSTYLE Or BIF_EDITBOX)
With tBrowseInfo
.hWndOwner = Me.hWnd
.ulFlags = BIF_RETURNONLYFSDIRS
.ulFlags = .ulFlags Or BIF_SHOWMAKENEW
End With
That should do it.
Re: [RESOLVED] Open folder
Under the browseinfo (tBrowseInfo in your example) I changed the AND to OR so it read ".ulFlags = BIF_RETURNONLYFSDIRS Or BIF_NEWDIALOGSTYLE" and that worked fine first time...many thanks :-)
Re: [RESOLVED] Open folder