Startup Application icon

J

JimP

Is it possible to embed the startup application icon in an mdb as opposed to
specifying a path?

This is a multi user environment and it will be difficult to deploy an icon
file and know the location of it.
 
J

JimP

Hi,

...sounds easy enough, but I'm not sure what you mean by "deploy icon to the
same path as mde".

The mdb will be distributed to users, potentially many users at many
locations, with no knowledge of MS-Access
1. Will I need to distribute the icon file separately?
2. Will they need instructions on where to locate the icon file?

Thanks,
Jim
 
A

Alex Dybenko

Hi,
1. if you just give users mde - then zip ico file with mde into same zip
else - just include ico in distribution package

2. just add code to startup proc - change path to appicon and
refreshtitlebar:

CurrentDb.Properties("AppIcon") = CurrentDBDir() & "\MyAppIcon.ico"
Application.RefreshTitleBar

Function CurrentDBDir() As String
Dim strDBPath As String
Dim strDBFile As String
strDBPath = CurrentDb.Name
strDBFile = Dir(strDBPath)
CurrentDBDir = Left$(strDBPath, Len(strDBPath) - Len(strDBFile))
End Function


--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com
 
J

JimP

I can't control distribution (mdb vs mde) or packaging - the only thing I
know is that the mdb will reside in a user's temp directory and the icon
file can be sent as a separate file (hence my other post).

Thanks for the help.
 
P

Pete D.

Hope I never clean his hard drive temp files up.
JimP said:
I can't control distribution (mdb vs mde) or packaging - the only thing I
know is that the mdb will reside in a user's temp directory and the icon
file can be sent as a separate file (hence my other post).

Thanks for the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top