472,952 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,952 software developers and data experts.

How to replace generic Access 2016 Icon with custom Icon in runtime

I have created Access 2016 Database with custom Icon. I canít figure out what I am doing wrong. Here is the problem: When I tested the database in my developing Computer, it opens with my custom Icon and everything is great as expected. But when I move it to another computer that does not have Access 2016 installed and run my Database in Run-time (Accde), everything work OK. But the only problem is that my Application custom Icon got replaced with Access GENERIC ICON in forms. I donít know why? However, the desktop shortcut Icon still show my database custom Icon. Can any body help me out.?
Dec 25 '16 #1

✓ answered by NeoPa

The icon should still be valid when run from other machines as long as each machine can see the icon file using the exact path as specified originally on your machine.

If it's on your C: drive then it's liable to fail when trying to load it from another machine.

2 2217
jforbes
1,107 Expert 1GB
This is the code I use to change the Icon. I don't remember writing it. It runs every time the DB is loaded:
Expand|Select|Wrap|Line Numbers
  1. CurrentDB.Properties("AppIcon").Value = "c:\SomeIcon.ICO"
  2. CurrentDB.Properties("UseAppIconForFrmRpt").Value = False
  3. Application.RefreshTitleBar
Dec 25 '16 #2
NeoPa
32,546 Expert Mod 16PB
The icon should still be valid when run from other machines as long as each machine can see the icon file using the exact path as specified originally on your machine.

If it's on your C: drive then it's liable to fail when trying to load it from another machine.
Jun 9 '18 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Megan | last post by:
Hi- I have a question about the Microsoft Access Record-Locking Information Icon. Whenever I, or my friends, open my MS Access database, the Microsoft Access Record-Locking Information Icon...
5
by: Bob Dydd | last post by:
Hi Everybody I have an Access 2000 MDB with the Usual FrontEnd/BackEnd Arrangement. The program depends on being able link to "Inbox" in Ms Outlook 2000. This is easy enough to do from the...
2
by: Carl Gilbert | last post by:
Hi I am looking to edit an icon at runtime on menu items such as change fill colour. I wish to replicate the features found in most applications where by the coloured bar on a colour picker...
2
by: flickimp | last post by:
I have created an access database, but I want to replace the standard access_db icon (when displayed on the desktop) with an alternate image...as the databse will be used as a tool. How do I go...
5
by: matttsch | last post by:
I am using VB.Net with Visual Studio 2005 to create an application. I set the application's icon by: 1. Clicking on the project. 2. Selecting View >> Property Pages. 3. Selecting the...
4
by: l034n | last post by:
I've been recently working on application that generates .net assemblies on-the-fly using the methods in System.Reflection.Emit. It works well, but i would like to also change the icon of my freshly...
0
by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?= | last post by:
"Anders Borum" wrote: Hi Anders, I'm afraid the GetMethod() does not currently support filtering on generic parameters so you will have to loop through the existing methods using...
0
by: ericstein81 | last post by:
Hey guys, I have a program that creates text files (*.txt) on a user's computer. I was wondering if anyone knew how to save another icon file other than the normail .txt file icon. That way the...
2
by: CD Tom | last post by:
I've installed Office 365 and when I bring up Access the back ground color is White, I've looked in the File, Account, but when I click on the Office Theme I only get two choices Colorful, White, no...
1
by: CD Tom | last post by:
I'm thinking about updating from Access 2007 to Access 2016 but have run into a problem. I can't find any place to compile my accdb to an accde. I've installed the office 2016 and can bring up my...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.