Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Automation

Automation

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpcomtestingtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yyf
    wrote on last edited by
    #1

    I used an ActiveX Object in my VB6 project like this: obj = CreateObject("AAA.BBB"); When I tried to do the same thing in C# .Net project, I can't not find this object in "Add reference" dialog. Does anyone know why? Thanks in advance!

    J 1 Reply Last reply
    0
    • Y yyf

      I used an ActiveX Object in my VB6 project like this: obj = CreateObject("AAA.BBB"); When I tried to do the same thing in C# .Net project, I can't not find this object in "Add reference" dialog. Does anyone know why? Thanks in advance!

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      Assuming you already looked under the "COM" tab of the add reference dialog box, the Component name used when creating a late bound control in VB6 using CreateObject often differs from the name displayed in the add reference dialog box. As an example, to create an Excel application reference in VB6, you could do this: xl = CreateObject("Excel.Application") but when you look in the VS.NET add reference dialog box, it is described as the "Microsoft Excel 9.0 Object Library". What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups