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
  1. Home
  2. General Programming
  3. C#
  4. Embedding window in window

Embedding window in window

Scheduled Pinned Locked Moved C#
helpcsharpwinformsjson
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.
  • C Offline
    C Offline
    CBoland
    wrote on last edited by
    #1

    I'm working on a WinForms app and need to embed an instance of MS Excel in a WinForm window. We did this in VB6, but it's quirky because we don't know Win32 API programming very well. I've got a sample of this, but don't see a way to post it along with this message. If I get a good solution to the problem, I'd like post an article on the topic for all to use. Can anyone offer help with this?

    D 1 Reply Last reply
    0
    • C CBoland

      I'm working on a WinForms app and need to embed an instance of MS Excel in a WinForm window. We did this in VB6, but it's quirky because we don't know Win32 API programming very well. I've got a sample of this, but don't see a way to post it along with this message. If I get a good solution to the problem, I'd like post an article on the topic for all to use. Can anyone offer help with this?

      D Offline
      D Offline
      Douglas Troy
      wrote on last edited by
      #2

      Wrap the API call to SetParent and pass it the handle to the window you want to act as a parent ... HWND SetParent( HWND hWndChild, HWND hWndNewParent ); This function exists in User32.dll D.

      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