-
1. I am writing an extended activex control that contains the MSFlexGrid, so i need to get the user at some point to enter the database file, i have created a databasename property but i can't get an open file dialog to choose a file when the name is edited in the properties menu of my container, how is this done? like they have in the Flex control.
2. Is there anyway to check if a file exists.
Any help is much appreciated, thanks.
Piers
:confused:
-
I didn't get your 1º's question very well! Why can't you get the open file dialog?:confused:
About the 2º, try this:
In your proj., add a reference to the "Microsoft Scripting Runtime", then
Code:
Dim FSO as FileSystemObject
Dim blResult as boolean
set FSO = new FileSystemObject
blResult = FSO.FileExists ("Path\filename.xxx")
'If true then it's there, otherwise it's not there...
the fso object has a lot of other cool things to play with...
:cool: