Click to See Complete Forum and Search --> : OLE View tool - Name of ActiveX controls


Markus W.
May 3rd, 2001, 01:24 AM
In the OLE View tool (part of MS Visual Studio) my own VB ActiveX controls
are listed by ProgID (PojectName.ControlName). Other controls are listed
by using something else (e.g. Microsoft Communications Control, version 6.0
for the MSComm control).
How can I change this representation for my own VB controls?

Cakkie
May 3rd, 2001, 02:46 AM
Change the description of your project. Right click the project in the project explorer, choose properties, give a description. Then compile the control. Now it should show up as whatever your typed as description.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

Markus W.
May 3rd, 2001, 03:31 AM
Thank you. I have already tried this. It changes the representation
in the VB-Project-Components dialog, but not in the OLE View tool.
The representation in the OLE View tool is still 'ProjectName.ControlName'.

Cakkie
May 3rd, 2001, 03:52 AM
You can't change this from VB, but you can manually change this in the registry:
in the key HKEY_CLASSES_ROOT\CLSID should be a subkey named as the classid of your dll (something like {fd2a7e10-1a9c-4d10-97e6-960e6cebd695}. You can get this ID with the OLE viewer. In that key, there will be a default entry containing "ProjectName.ControlName". this is the string that shows up in OLE view. If you change this, it will also change in OLE view (after a refresh of course). If you need to address you component from code, it's still CreateObject("projectname.controlname")

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook