Results 1 to 4 of 4

Thread: Set default open with and how to handle file?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    70

    Set default open with and how to handle file?

    How can I set a file extension to open with my application?

    Also how would I handle the file that it opens with?

  2. #2
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Re: Set default open with and how to handle file?

    1st
    Open Explorer and rightclick on a file with the extension you want to associate with your application. In the contextmenu, click on 'Open with...' and take it from there

    2nd
    Check out the My.Application.CommandLineArgs property on MSDN
    Last edited by Arve K.; Nov 18th, 2009 at 08:16 PM.
    Arve K.

    Please mark your thread as resolved and add reputation to those who helped you solve your problem
    Disclaimer: I am not a professional programmer

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    70

    Re: Set default open with and how to handle file?

    Well I mean by code, not doing it manually. Like those 'associate all .bla with my app'

  4. #4
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Re: Set default open with and how to handle file?

    Ok, well in that case, take a look at this link
    Arve K.

    Please mark your thread as resolved and add reputation to those who helped you solve your problem
    Disclaimer: I am not a professional programmer

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