Results 1 to 2 of 2

Thread: how to make icon from bitmap

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Secunderabad, AP, INDIA
    Posts
    20

    Post

    pl give me some idea with code probable how to make icon with bitmap file...pl help in this regard asap...

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    Add the bitmap to a ImageList control. Load the bitmap into a picture box using the ExtractIcon method of the ListImage object. Save the icon.

    Picture1 = ImageList1.ListImages(1).ExtractIcon
    SavePicture Picture1, "C:\MyIcon.ico"

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



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