Results 1 to 6 of 6

Thread: Creating an icon

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    Right. Stupid question...how do I create an icon from a bitmap or jpeg? Do I just need a good paint-type program or is there something in VB6 that'll do it for me? I'm at home and I've got bulk-standard win98.

    Thanks muchly,
    T

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Extract it from a imagelistcontrol

  3. #3
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Icons

    One thing that you might like to try is downloading a free evaluation copy of MicroAngelo 98, to make .ico and .cur files, which can be used as mouse cursors and icons anywhere on your computer (try messing about in the control panel) as well as with VB. It's been pretty invaluable to me and I much recommend it - download it at any freeware/shareware site. A friend of mine noticed that (and I do not condone you doing this ... ahem ...) if you hold onto the setup files you can keep reinstalling it after the 30-day evaluation period. The computer doesn't know any better and just puts it back on your computer as if it had never been there, restarting the counter at 0 days...

    Sam

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Put an imagelistcontrol and a picturebox into your form. Size it 32*32 and load a picture (32*32) into it use this code:

    Code:
    Icon = Imagelist1.ListImages.Add(, , Picture1.picture).ExtractIcon
    Imagelist1.clear

  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    if you have a bmp file just rename the file extention to .ico and becomes an icon (doesn't work with jpg or gif)

    or

    go here:
    http://www.axdn.com
    they have good software.

  6. #6
    Junior Member
    Join Date
    Feb 2000
    Posts
    21
    Hi,

    Creating an icon from a bmp or any other image in VB is not
    easy if you want to create icons in any format and any colors.
    You can do it with an ImageList, but you'll only get 16x16 or 32x32 16 colors icons (and have to use a monster ocx...)

    But if you want more with icons in VB, just take a look at
    Http:/vbaccelerator.com where you'll find some interesting (complex)code about working with icons (any format and colors).

    Claude

    P.S: changing the extension of a bitmap(bmp) to .ico will NOT transform your bitmap into an icon (bmp and icons are completely different)even if it works sometimes with VB.

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