Results 1 to 5 of 5

Thread: Default file extension icon

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    7

    Default file extension icon

    Hi All,
    I am working on an application called budget planner. In this app, I can save my budget with a file extension .bpl only. Now this ".bpl" extension is provided by our application.

    I want default icon attached to this file extension (similar to word document *.doc)
    Can I do this in VB.Net and if yes can anyone show me a direction.

    Thanks in advance,

    Nimesh

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Default file extension icon

    You create a Setup project to distribute your application and in that project you use the File Types Editor to create the file associations, including the icon to be used for each file type. The appropriate registry entries will then be created when you install your application.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    7

    Re: Default file extension icon

    Thanks Sir,
    I got it. So it means there may be many ways to do so. Have you got any idea how can we do it via code. I guess we need to do some registry coding but i m not sure. Can you guide me with that

    Thanks in advance,

    Nimesh

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Default file extension icon

    This one wil be helpful to u.It is in C#. If u want to convert it to VB.net,then use the Code Convertor in my signature

    Hope this helps
    Please mark you thread resolved using the Thread Tools as shown

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    7

    Re: Default file extension icon

    Hi,
    You gave me the below method for making file extension associations

    Re: Default file extension icon
    You create a Setup project to distribute your application and in that project you use the File Types Editor to create the file associations, including the icon to be used for each file type. The appropriate registry entries will then be created when you install your application.

    BUT this procedure is only applicable if you are using InstallShield but I am using InstallScript...have you got any other idea on how to do this.

    Thanks in advance,
    Nimesh

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