Results 1 to 2 of 2

Thread: Few control questions

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Leeds
    Posts
    30
    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


  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    I didn't get your 1º's question very well! Why can't you get the open file dialog?

    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...



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width