Results 1 to 3 of 3

Thread: Trouble Accessing OCX Component

  1. #1
    ggunter is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Apr 2008
    Posts
    137
    Reputation
    98

    Trouble Accessing OCX Component

    I have a third party component that I regularly use. I referenced it as usual and it pulls in the dll's. However, it is not pulling the ocx into the toolbox.

    I last used this component four months ago and it's not showing in that project's toolbox either.

    I'm hoping there is a Studio property that was changed without my knowledge.

    Anyone have any ideas? If not, does anyone know of some other way for me to get the OCX onto my form?

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,188
    Reputation
    2368
    When the ocx is registered in system (regsvr32) you should be able to use context menu in Toolbox and 'choose items' and find the ocx in COM tab.
    With the control item in Toolbox you can drag it to a form and the required project references and interop will be added automatically.

  3. #3
    ggunter is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Apr 2008
    Posts
    137
    Reputation
    98
    JohnH, you're a life saver. Thank you!!

Bookmarks

Posting Permissions

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