help eliminating need for icon file 
Author Message
 help eliminating need for icon file

My program uses one icon on 10 forms and for the main program.  I applied
the icon to each form and to the main program using the "options" menu on
the "make project" compile screen.  If I move the compiled file to a new
directory the correct icon is next to the program name and when it loads
the first several forms have the correct icon.  At the third form the
program stops with the error message "Runtime error 42, file "program.icon"
not found.  If I place a different icon in the file "program.icon" and copy
it to the directory, the program runs with the new icon only displayed on
one form and the correct icon on all the rest.  I have tried reapplying the
correct icon to the rogue form to no avail.  I really don't want to have to
distribute the program.icon file with my program.  Any suggestions on how
to get the rogue form to behave.

W. Dahms



Sat, 18 Dec 1999 03:00:00 GMT  
 help eliminating need for icon file

Are you loading the icon in run-time?

Peter Larsson



Sat, 18 Dec 1999 03:00:00 GMT  
 help eliminating need for icon file

Thanks, this solved the problem.  I had an unnecessary
LoadPicture("program.icon") Method in the form that caused the problem.
With the line removed, all is well.

W. Dahms



Quote:
> Are you loading the icon in run-time?

> Peter Larsson



Sun, 19 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Need help with Icons in RES file in VB4 32 bit

2. a way to eliminate the taskbar icon button?

3. can you eliminate a taskbar icon?

4. Need Guru's Help making ICONS behave as ICONS

5. Help with icon files. - icons.zip (0/1)

6. Help with icon files. - icons.zip (1/1)

7. MaskEdBox: Need to eliminate dash from Zip Code

8. File Explorer Help - Icon/File Associations

9. Eliminating files in compiled VB programs

10. Eliminating files in compiled VB programs

11. FrontPage VBA Macro help to eliminate URL

12. Eliminate Character in Text Field Help

 

 
Powered by phpBB® Forum Software