How can I put my own ICON on an Access form

S

SJ

Is it possible to put my own custom icon on a form instead of the default
icon, ie up in the title bar.....

if so, any clues?

thanks
 
T

TC

There's an "application icon" setting in Tools : Startup. If you select
an .ICO or .BMP file in there, Access will display that icon or bitmap
at the top left corner of the Access application window. But I dont
think that it shows at the top left corner of each form. The icon also
shows on the taskbar icon, when Access is minimized to the taskbar.

One trick when using this setting, is that you must use a full
filepath. You can not make it relative to the location of the database.
For example, .\blah.ico will /not/ look for blah.ico in the same
folder (.\) as the current database. It will have to be c:\my
documents\temp databases\blah.ico, or somesuch. So if you move the
database & icon to a different folder, you'll have to update the icon
path - manually, or you can also do it through code. The F1 Help
suggests that you can just put it in the same folder as the database,
but that has never worked for me.

HTH,
TC (MVP Access)
http://tc2.atspace.com
 
S

SJ

Yes, thats right,

any idea on original question about how to put an icon on a forms title bar.
ie, without reading the icon from the file system each time a form loads,
as that , I can already do. using API calls,, - LoadImage and
SendMessage don't really want to embedd the icon in all the forms either.

I was thinking more to "load" an icon and then refer to it each time any
other form loads in some code instead of reloading the icon file each time a
form loads, as that may ba a bit slow given network environments and the
likes.

oh yeah, TC, if you put a bitmap in the App folder (with the same filename
as the app) then it fires that up "at startup" instead of the MSAccess
start screen. maybe thats what the F1 help was referring to... yes,
it's only a very brief thing...
 

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

Similar Threads


Top