Renaming the task bar Application name

  • Thread starter Thread starter Stephen Haley
  • Start date Start date
S

Stephen Haley

I have an access app nearing completion. It will be distributed with the
runtime environment and on startup it hides the runtime environment using
the api call apiShowWindow leaving just a masterform. When I minimise the
app it shows an access icon with the name of the mdb on the task bar. Is
there a way to change both the name and the icon?

rgds
Stephen
 
I dont think your api call changes anything I never used them. So these 2
things can be set in tools->startup. To do it at runtime you'll need to
search for 'startup properties example'. There it has all the code you need
to do it. 'Apptitle' is the property for the application title. Never looked
for icon property name my guess is 'appicon'. In my code it looks like this.

ChangeProperty "apptitle", DB_TEXT, "title: " & DLookup("[name]", "[Company]")
Application.RefreshTitleBar

HTH
Martin J
 
Sort of works but access insists on puting "access 2003......" after the
name

Martin J said:
I dont think your api call changes anything I never used them. So these 2
things can be set in tools->startup. To do it at runtime you'll need to
search for 'startup properties example'. There it has all the code you
need
to do it. 'Apptitle' is the property for the application title. Never
looked
for icon property name my guess is 'appicon'. In my code it looks like
this.

ChangeProperty "apptitle", DB_TEXT, "title: " & DLookup("[name]",
"[Company]")
Application.RefreshTitleBar

HTH
Martin J


Stephen Haley said:
I have an access app nearing completion. It will be distributed with the
runtime environment and on startup it hides the runtime environment using
the api call apiShowWindow leaving just a masterform. When I minimise the
app it shows an access icon with the name of the mdb on the task bar. Is
there a way to change both the name and the icon?

rgds
Stephen
 
Is there a SPECIFIC NEED to change the file name & icon or is it just
window dressing? While I would be inclined to want the file name & icon
different if I were in your situation, I would temper that against the
amount of work and effort needed to make it happen, including research
time.

David H

Stephen said:
Sort of works but access insists on puting "access 2003......" after the
name

I dont think your api call changes anything I never used them. So these 2
things can be set in tools->startup. To do it at runtime you'll need to
search for 'startup properties example'. There it has all the code you
need
to do it. 'Apptitle' is the property for the application title. Never
looked
for icon property name my guess is 'appicon'. In my code it looks like
this.

ChangeProperty "apptitle", DB_TEXT, "title: " & DLookup("[name]",
"[Company]")
Application.RefreshTitleBar

HTH
Martin J


:

I have an access app nearing completion. It will be distributed with the
runtime environment and on startup it hides the runtime environment using
the api call apiShowWindow leaving just a masterform. When I minimise the
app it shows an access icon with the name of the mdb on the task bar. Is
there a way to change both the name and the icon?

rgds
Stephen
 
Back
Top