Setting the Application Icon In VBA

Dreamweaver

Well-known member
Local time
Today, 09:15
Joined
Nov 28, 2005
Messages
2,466
Does anybody know how to set the application Icon so if the user dosn't put the files in same location it can be updated to CurrentProject.Path/


thanks mick
 
have you tried putting everyone's frontend in their own folder?
this way you can update everyone by sending a copy to each folder,
the user never has to do anything,
the app is always up-to-date.

I click a button and the code copies the app to each folder in the list.
 
Does anybody know how to set the application Icon so if the user dosn't put the files in same location it can be updated to CurrentProject.Path/
Any particular problem with that?

This should do the trick:
Code:
CurrentDb.Properties("AppIcon").Value = CurrentProject.Path & "\YourIcon.ico"
Application.RefreshTitleBar
 
Thanks Sonic8 seems to do the trick changed set image for correct one
 
Ranman256 thanks but that wouldn't work for me as my projects are downloaded by anybody on the net While i expect them to use the folder which contains all related files they may not place that on C:\ in that instance my icon reverts back to the default access image.
 
You might look into letting everyone download a batch file that becomes your auto-launcher that loads the app to the location of the batch file and then launches it. Search this forum for Update Application Automatically" and similar phrases.
 

Users who are viewing this thread

Back
Top Bottom