CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Icon Problems

  1. #1
    Join Date
    Feb 2000
    Location
    America
    Posts
    130

    Icon Problems

    I've got an icon that i've loaded into my vb project a LOOOONG time ago...and i accidentally deleted the ico file. now i need the icon back, but it's only in my vb project. and i have no clue how to copy it out. can anyone help? i need to get it back as an ico file, and the only copy i have of it is in the icon property of my main form.


  2. #2
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Icon Problems

    There are many Shareware/Freeware programs available that will extract icons from an executable. Try a search on Alta Vista for:
    +Icon +Extract
    Here's one of the results http://supershareware.co.uk/Apps/4810.asp


  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Icon Problems

    If you still have the original project (vbp, frm, frx files) then Brad Martinez has written some code in VB to extract all kinds of resources from 'frx' files -

    http://www.mvps.org/btmtz/gfxfromfrx/



    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  4. #4
    Join Date
    Mar 2000
    Posts
    2

    Re: Icon Problems

    You could also try out the following code:
    savepicture me.Icon,"C:\Windows\Desktop\LostIcon.ico"





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

Featured