I was having difficulty finding appropriate Icons that could be added to VB6 programs, and using online Icon tools was a real pain. So I found an older Bmp2Icon program code, but it was overly complex, difficult to use, and contained a lot of unused code (4 forms, 4 modules, 2 Classes, and 2 User Controls). Attached is my attempt at a much simplified version.
The sample shown below used 3DLRSIGN.WMF from the VB6 graphics collection, changed the aspect ratio to make it square, changed the background from white to red, shrunk it to the size of a 32 x 32 icon, and saved it in Icon format. It was then used as the Icon for the program.
I have very little graphic experience, and I expect that the code could be simplified further. Even though I changed the background to red, the Icon showed up with a translucent background, and when I viewed the Icon with Paint, it showed up as a red dollar sign with a white background (?????).
J.A. Coutts
The sample shown below used 3DLRSIGN.WMF from the VB6 graphics collection, changed the aspect ratio to make it square, changed the background from white to red, shrunk it to the size of a 32 x 32 icon, and saved it in Icon format. It was then used as the Icon for the program.
I have very little graphic experience, and I expect that the code could be simplified further. Even though I changed the background to red, the Icon showed up with a translucent background, and when I viewed the Icon with Paint, it showed up as a red dollar sign with a white background (?????).
J.A. Coutts