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. Visual Basic
  4. how to set parent window

how to set parent window

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
6 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.
  • B Offline
    B Offline
    bony_baba
    wrote on last edited by
    #1

    hi Everybody i am working on window application in vb.net actually i want to show my form under the visio window means to make visio as parent window for that form, how can i do that . if anybody know please help me. Thanks

    D 1 Reply Last reply
    0
    • B bony_baba

      hi Everybody i am working on window application in vb.net actually i want to show my form under the visio window means to make visio as parent window for that form, how can i do that . if anybody know please help me. Thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can't. You cannot make your application a child window of another application. If you want to do something like this, you'll have to write an Add-On for Visio. Dave Kreskowiak Microsoft MVP - Visual Basic

      B 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You can't. You cannot make your application a child window of another application. If you want to do something like this, you'll have to write an Add-On for Visio. Dave Kreskowiak Microsoft MVP - Visual Basic

        B Offline
        B Offline
        bony_baba
        wrote on last edited by
        #3

        yes i know that it can be done by using set paarent window but it is not working or i used in the wrong way if anyone of you know please help me Thanks -- modified at 6:47 Friday 7th April, 2006

        D 1 Reply Last reply
        0
        • B bony_baba

          yes i know that it can be done by using set paarent window but it is not working or i used in the wrong way if anyone of you know please help me Thanks -- modified at 6:47 Friday 7th April, 2006

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Once again, NO, YOU CAN'T DO THIS!! You can NOT make your window a child window of another application! Why? Because when the other application repaints it's own window, your window will never get repainted. This is because your window is not going to get, and can NOT get, the WM_PAINT messages it needs to tell it to repaint at the appropriate time. Dave Kreskowiak Microsoft MVP - Visual Basic

          B 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Once again, NO, YOU CAN'T DO THIS!! You can NOT make your window a child window of another application! Why? Because when the other application repaints it's own window, your window will never get repainted. This is because your window is not going to get, and can NOT get, the WM_PAINT messages it needs to tell it to repaint at the appropriate time. Dave Kreskowiak Microsoft MVP - Visual Basic

            B Offline
            B Offline
            bony_baba
            wrote on last edited by
            #5

            but in visual basic 6.0 i do this several time by using set parent API. Is this APi doesnot work in vb.nrt Thanks

            D 1 Reply Last reply
            0
            • B bony_baba

              but in visual basic 6.0 i do this several time by using set parent API. Is this APi doesnot work in vb.nrt Thanks

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Exactly! Dave Kreskowiak Microsoft MVP - Visual Basic

              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