Results 1 to 3 of 3

Thread: Issues with file type association

  1. #1
    Addicted Member
    Join Date
    Oct 10
    Posts
    191

    Issues with file type association

    I am doing some tests on an application which is the default program for .testtxt file types (just a custom text format).
    I have completed all the registry configurations (for the file association) and when i dblclick on a .testtxt file, it opens
    with my app without problems.

    But there are two issues about that:

    1) When i try to open two different .testtxt files the same time, they execute my application two times when i want to execute
    it just one and take arguments from command line using index 1 and 2 (0 carries my app startup path).

    2) The same happens if my app is running and i try to open a .testtxt file using dlbclick. The file doesn't open the current running window,
    but opens in a new one.

    What could i do about these issues?

  2. #2
    Frenzied Member MattP's Avatar
    Join Date
    Dec 08
    Location
    WY
    Posts
    1,187

    Re: Issues with file type association

    Go to the Application tab on your Project Properties and check the box for "Make single instance application".
    This pattern in common to all great programmers I know: they're not experts in something as much as experts in becoming experts in something.

    The best programming advice I ever got was to spend my entire career becoming educable. And I suggest you do the same.

  3. #3
    Addicted Member
    Join Date
    Oct 10
    Posts
    191

    Re: Issues with file type association

    what if my app is a wpf? :/

Posting Permissions

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