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. Visual Basic
  4. Activating WinForm with Handle (VB .NET)

Activating WinForm with Handle (VB .NET)

Scheduled Pinned Locked Moved Visual Basic
csharptutorialquestion
4 Posts 3 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Is it possible to activate a winform using its handle? For example, if you know the handle (intptr) and the window is minimized or behind another window. Is it possible to Activate the winform using that handle?

    E 1 Reply Last reply
    0
    • A Anonymous

      Is it possible to activate a winform using its handle? For example, if you know the handle (intptr) and the window is minimized or behind another window. Is it possible to Activate the winform using that handle?

      E Offline
      E Offline
      Empires
      wrote on last edited by
      #2

      you could use interop to use the user32 dll example here http://www.codeproject.com/vb/net/ActivateSingleAppInstance.asp

      A 1 Reply Last reply
      0
      • E Empires

        you could use interop to use the user32 dll example here http://www.codeproject.com/vb/net/ActivateSingleAppInstance.asp

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Is there a way without doing it with using the WinHelper? I've seen that link before...but I'm trying to look for another solution without using the WinHelper. Any suggestions?

        D 1 Reply Last reply
        0
        • A Anonymous

          Is there a way without doing it with using the WinHelper? I've seen that link before...but I'm trying to look for another solution without using the WinHelper. Any suggestions?

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

          You don't have to put that stuff in it's own class. You can just put the same code into your form code if you want. But, keeping all of your Win32 wrappers in a seperate class like that makes it very easy to reuse without having to copy and paste gobs of code everywhere. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          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