VB 6: Icon on formless application - TechRepublic
General discussion
January 4, 2001 at 01:10 PM
txitguy

VB 6: Icon on formless application

by txitguy . Updated 25 years, 5 months ago

I have written a small application to autoplay from a CD-ROM. It checks for the existance of Internet Explorer on the computer, and if it finds it, opens a web site in it. Execution starts in sub Main(), and the application doesn’t have a form.
I drew a custom icon that I want to use for this application, but I can’t figure out how to tell VB to use it. It currently resides at ID 1 in a resource file, that is included in the project. I have also tried assigning it to a variable using:

Icon = LoadResPicture(1,vbResIcon)

No matter what I try, the icon never shows up on the Make tab. How do you assign an icon to a formless application?
Ben

This discussion is locked

All Comments