CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 1999
    Location
    Switzerland
    Posts
    398

    OLE View tool - Name of ActiveX controls

    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?

    Leica Geosystems - when it has to be right

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: OLE View tool - Name of ActiveX controls

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Jun 1999
    Location
    Switzerland
    Posts
    398

    Re: OLE View tool - Name of ActiveX controls

    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'.

    Leica Geosystems - when it has to be right

  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: OLE View tool - Name of ActiveX controls

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured