Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set AppIcon Using CommandBar Control Icon

Status
Not open for further replies.

Schof

Programmer
Nov 18, 2002
103
0
0
CA
I think the subject is pretty self explanatory but in case it isn't...

I created a commandbar that has a control whose icon I would like to use as my application's icon (ie. top left hand corner). Is it possible to somehow reference that icon instead of referencing a file in my file system? The reason for this is that I do not want the users to have to install anything (or copy icon files) on their computers. I just want to send them the MDE and for the application icon to appear.

So instead of ...


Set prp = dbs.CreateProperty("AppIcon", DB_Text, "C:\myIcon.ico")

I want something like this...

Set prp = dbs.CreateProperty("AppIcon", DB_Text, CommandBars(myCommandBar).Controls(myControl))

I have investigated this quite a bit and have yet to find a solution anywhere. Has anyone else managed to accomplish this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top