File Icons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter

    #1

    File Icons

    Hello,

    Is there a way to, after creating a binary (or other kind of) file using a
    FileStream object, to set its icon in Windows?

  • Herfried K. Wagner [MVP]

    #2
    Re: File Icons

    "Peter" <starrim@hotmai l.comschrieb:
    Is there a way to, after creating a binary (or other kind of) file using a
    FileStream object, to set its icon in Windows?
    The icon depends on the file type (extension, such as "file.txt", "foo.doc",
    "bla.ico").

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • Peter

      #3
      Re: File Icons

      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
      news:u%23jvA3He HHA.2316@TK2MSF TNGP04.phx.gbl. ..
      "Peter" <starrim@hotmai l.comschrieb:
      >Is there a way to, after creating a binary (or other kind of) file using
      >a FileStream object, to set its icon in Windows?
      >
      The icon depends on the file type (extension, such as "file.txt",
      "foo.doc", "bla.ico").
      For known file types, yes... but lots of programs create proprietary file
      types that have their own icons. Is that a registry issue? And if so, how
      would I go about registering a new file type programatically ?

      This question strays a bit off the topic of this forum, but in previous
      version of Windows, a user could set a file icon on a file-by-file basis.
      This doesn't seem to be possible any more in XP (I haven't yet moved to
      Vista). Or is it?

      Comment

      Working...