|
-
Apr 23rd, 2001, 08:25 AM
#1
Thread Starter
New Member
Does anyone know how to change that goofy little default icon in an activeX control to a custom icon. I have tried everything I can think of with no success. I tried changing the icon in the Project properties, but unless you have a component in the project (such as a form), it won't let you choose your own. I tried adding a form, and it then let me change the icon, but when I compile the ActiveX into a .ocx, and import it into another project, it just shows up on the toolbar as that goofy little "writing on the windowpane" icon.
I know this seems like a trivial problem, but I'd really like to be able to change it. Any ideas???
Thanks in advance to all you VB guru's.
Tim
-
Apr 23rd, 2001, 07:03 PM
#2
Addicted Member
Hi,
The .ocx extension has an icon defined in the registry. You can change it in there and that will change it for all .ocxes. There is a way to change it for a specific instance of an ocx in there, too. But i'm not sure off the top of my head where. Also, the toolboxbitmap property will change its appearance in the VBE.
That's probably not a lot of help, but perhaps it can point you in the right direction.
Wolf
That which does not kill us, only makes us stronger. 
-
Apr 24th, 2001, 08:48 AM
#3
Thread Starter
New Member
OK, so at the risk of sounding stupid <g>, what you're telling me is that if I want to distribute an OCX, I'll have to have an installation program of some sort make a change in the registry so that when another VB user uses it, it will have a unique icon on the toolbar? I guess I'll have to study the registry and see what I need to change to do this. I have looked and looked for documentation on this, but apparently no one seems to think it's important enough to document.
By the way, after looking at your profile (out of curiousity), I see that your birthday is March 23, 1971. Mine is March 8, 1971.
Tim
Last edited by t.pauly; Apr 24th, 2001 at 09:02 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|