Results 1 to 4 of 4

Thread: Change icon of a file

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Question Change icon of a file

    Hello,

    here I am with another question! I have an app. that creates a new file type and it has the default windows icon for not-known extensions, is there a way to change its icon after it has been created?

    Thanks a lot!
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  2. #2

    Re: Change icon of a file

    I'm confused as to what you want to know...are you associating an icon with a file-type? Or am I not on target here..

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Re: Change icon of a file

    Oh, sorry for being confusing... My app creates a file with this extension .enc, there isn't any icon associated to this file type, so I would like to change the icon for each file the app creates, is it clearer now?
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  4. #4
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: Change icon of a file

    If I understand correctly you are looking to associate a default icon with files of your .enc file exension?

    Assuming that the file type is already referenced in the registry (I'm figuring you've already done this so that your application will open if the user double-clicks on a .enc file?) you just need to amend another registry entry to point at a specified icon.

    This article does that - its not the clearest example in the world but it should do the trick.

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