CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Malaysia
    Posts
    21

    Insert data to form when associate file got DbClick

    Hi,
    I had associate a file extension with my app. When user double click the file, my application will be call out. Anyway, i can't figure out how to retrieve data from that file when that DClick event happen and read it at my app load time.
    Note : i'm thinking of using Open FileName for Input as ... but i don't know how can my app know the filename of file being DClick.

    Sorry for my bad English.
    Thanks for Helping.



  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Insert data to form when associate file got DbClick

    Hi,
    When Windows calls (your) application assosicated with a perticular File extention, it provides the file name as command line parameter .

    So, to get the name of the file on which DbleClick occured, look at Command$ , environment vairable.
    Just print Command$ and see if you get the file name.
    Use Debug.print Command$ in your startup form's form load.

    Ravi


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

Featured