EXE icons in a project with no form

I have an application with no form, but I the compiled exe to have an icon. The only way I see to create an app icon is in Project Properties by setting the app icon to the icon of an existing form. Anyway to get around this without adding a form?
masterpoeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
You have to add a form even if you never show it!
0
masterpoeAuthor Commented:
I need to be able to run this program with going through an installation process. If you add a form, it requires an installation process. I need to get around adding a from; if it's possible.
0
anthonycCommented:
you have to go through an installation process with or without a form!  
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

nfernandCommented:
Emoreau it's ok. Even if you don't need the window, you will find (sooner or later) that you need an installation process (VB library for example).

You won't need an installation process if the target PC has all the VB updates that the developer PC has.

I've tried to do the same thing (program with no installation) and found no other way.
0
cable4096Commented:
If it is a DLL/OCX you can register it with regsvr32.exe found in the system directory.

The icon can be changed later with the Shortcut to the program by hand. It should default with the default VB program icon, that square frame.

You can add an icon without using a form, by using the "Add ActiveX Designer" for things like Active Reports, which has a property page for an icon which can be set in the program properties.
0
autCommented:
Steps:
1. Create a resource file (a text file, but with the extension ".rc"... You'll only need the following line in it:
   0 ICON c:\path\filename.ico
Make sure that "C:\path\filename.ico" actually points to your icon file. Note: the "0" is a ZERO...

2. Compile the resource file. You can do that using the resource compiler EXE file (RC.EXE). All you have to type is:
   RC myresfile.rc
You'll find the RC.EXE file on your VB CD, or on one of the Visual Studio CD's

3. Include the compiled resource file in your project.

4. That's it!

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
masterpoeAuthor Commented:
NICE JOB! Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.