Results 1 to 10 of 10

Thread: Saving *.ico Files

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    15

    Lightbulb

    Does Anyone Know How To save a Bitmap as a Icon (*.ICO) File?

    Thanks,
    Slammer_1987@Engineer

  2. #2
    Guest
    Here's a small trick you can use

    • Make a Form with 2 PictureBox's
    • Load a BMP file in Picture1
    • Load Picture1 into an ImageList
    • Use the ExtractIcon method to set the MouseIcon of a hidden Control to our BMP (Which is now in the ImageList)
    • Load the hidden Control's cursor into Picture2
    • Use the SavePicture method and save it as an Icon.


    This is a little sneaky way of doing it but it works well.

  3. #3
    Member
    Join Date
    Jun 2000
    Location
    In front of Computer
    Posts
    37
    you know what would be nicer, if you just made that program and posted a link

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    No, Meg did just add those bullets and everything, i think he have pictured and explained everything very well
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Guest
    Thanks, Kedaman.

    As for you, CtrlAltDel, What part of that don't you get?


  6. #6
    Member
    Join Date
    Jun 2000
    Location
    In front of Computer
    Posts
    37
    o, i get it, dont worry...just thinkin of an app for you to make, a quick little .ico maker

  7. #7
    Guest
    Well, actually I have made it. I have stumbled apon this last year sometime and created it then.

  8. #8
    New Member
    Join Date
    Jun 2000
    Location
    Singapore
    Posts
    8

    Hey Megatron

    Where do I get the ImageList object?
    PiKaPrO
    =======
    PiKa ProGraMMeR © 2000
    [email protected] No SPAMMERS!
    MSVB6.0 PRO SP3 Detected.

  9. #9
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    It's in that huge comctl32 ocx, you can add it by pressing Ctrl+T and select Microsoft Common Control 5.0 or 6.0
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  10. #10
    Guest
    The icon is usually under the Progress Bar and it look like 3 white boxes stacked on top of each other.

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