|
-
Feb 7th, 2007, 08:54 AM
#1
Thread Starter
New Member
About comdlg32.dll
Hi,
I hop this ti the right forum to ask about this topyc:
I whant to add parameter that will say if all the options to change a path by user for save/open file is able..(in the save/open dialog).
This is my code:
Thank you!!!
Yael.
Code:
Option Compare Database
Option Explicit
Type tagOPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
strFilter As String
strCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
strFile As String
nMaxFile As Long
strFileTitle As String
nMaxFileTitle As Long
strInitialDir As String
strTitle As String
Flags As Long
nFileOffset As Integer
nFileExtension As Integer
strDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type
'BrowseFolder Declarations
Private Type BROWSEINFO
hOwner As Long
pidlRoot As Long
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfn As Long
lParam As Long
iImage As Long
End Type
Declare Function aht_apiGetOpenFileName Lib "comdlg32.dll" _
Alias "GetOpenFileNameA" (OFN As tagOPENFILENAME) As Boolean
Declare Function aht_apiGetSaveFileName Lib "comdlg32.dll" _
Alias "GetSaveFileNameA" (OFN As tagOPENFILENAME) As Boolean
Declare Function CommDlgExtendedError Lib "comdlg32.dll" () As Long
...
-
Feb 7th, 2007, 09:14 AM
#2
-
Feb 7th, 2007, 10:19 AM
#3
Thread Starter
New Member
Hi
http://www.vbforums.com/showthread.php?t=451509
Hi,
How can I disable all the dialog buttons and enable only the cancel/save/open?
My goal is the user could not change the path.
Thanks.
-
Feb 7th, 2007, 10:22 AM
#4
Re: About comdlg32.dll
Threads merged - please reply to the same thread, rather than create new ones for the same issue
-
Feb 7th, 2007, 04:42 PM
#5
Thread Starter
New Member
Re: About comdlg32.dll
 Originally Posted by si_the_geek
Threads merged - please reply to the same thread, rather than create new ones for the same issue
could you help me please???
Thanks'
Yael
-
Feb 7th, 2007, 05:16 PM
#6
Re: About comdlg32.dll
I don't know any way of doing that.. I would expect that the easiest solution would be to create your own form which only has the functionality you want.
This could just be a textbox with Save/Open and Cancel buttons, or you could also have a list of files in the folder too.
-
Feb 8th, 2007, 01:56 AM
#7
Thread Starter
New Member
Re: About comdlg32.dll
Thanks for your answer.
Cuold you know any link to example for that?
(I'm java programing' not VB - so I need any code )
-
Feb 8th, 2007, 02:10 AM
#8
Re: About comdlg32.dll
You can customize the common dialog box but only to a certain extent and its not exactly easy. 
For an example, look at this link - http://vbnet.mvps.org/code/hooks/fil...ookadvtext.htm
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 8th, 2007, 03:29 AM
#9
Thread Starter
New Member
Re: About comdlg32.dll
Thank you,
first I'm trying to run "GetOpenFileName: Customize File Open/Save Common Dialog Controls" example.
I'm running it on access, (VBA),.
Please' cuold you tell me where is the "main method" to call here from button event to run this dialog..
-
Feb 8th, 2007, 04:05 AM
#10
Re: About comdlg32.dll
It would be the Command1_Click procedure where you initialize the features. Then the actual call is made with ...
'call the API
Call GetOpenFileName(OFN)
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 8th, 2007, 05:21 AM
#11
Thread Starter
New Member
Re: About comdlg32.dll
Thanks for your help,
Maybe do you know some code for just save / open file (it is not metter to me how it's look).
Just dialog for save / open file will be ?
-
Feb 8th, 2007, 05:52 AM
#12
Re: About comdlg32.dll
All the code examples are on that site.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 8th, 2007, 06:35 AM
#13
Thread Starter
New Member
Re: About comdlg32.dll
Maybe it this flags?
OFN_NOCHANGEDIR
OFN_NONETWORKBUTTON
-
Feb 8th, 2007, 03:51 PM
#14
Re: About comdlg32.dll
What is it you are trying to do? The linked example is complete and functions fine.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|