is there anyway to get the save file dialog without adding taht damn ocx....i hate using ocx's so much. ust wondering
Printable View
is there anyway to get the save file dialog without adding taht damn ocx....i hate using ocx's so much. ust wondering
I'm sure the dll's are a bit cooler, commondialogs comes with windows anyway:
Just in case you want to play around with it, otherways i could send you my opendialog class ;)Code:Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private FileDialog As OPENFILENAME
Private Type OPENFILENAME
lStructSize As Long '
hwndOwner As Long '
hInstance As Long '
lpstrFilter As String '
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long '
lpstrFile As String '
nMaxFile As Long '
lpstrFileTitle As String '
nMaxFileTitle As Long '
lpstrInitialDir As String
lpstrTitle As String
Flags As Long '
nFileOffset As Integer
nFileExtension As Integer '
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type
That would be nice... Could you please post your class? :)
Is this what you are looking for?
Yes, this is exactly what I was sarching for!
Thank you very much Manavo!
No problem ;)