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. here's one for the books

here's one for the books

Scheduled Pinned Locked Moved Visual Basic
comquestion
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.
  • T Offline
    T Offline
    Tom Wright
    wrote on last edited by
    #1

    Is it possible to track a form (that is not your app) and place a button on it for the end user to click on? So basically...say a dialog app starts up. My program (which will be running in the background) will see that this app starts....gets the dimensions of the app and places a button on top of the app as well and moves the button if the user moves the app around on the desktop. Is this possible? Thanks

    Tom Wright tawright915@gmail.com

    D 1 Reply Last reply
    0
    • T Tom Wright

      Is it possible to track a form (that is not your app) and place a button on it for the end user to click on? So basically...say a dialog app starts up. My program (which will be running in the background) will see that this app starts....gets the dimensions of the app and places a button on top of the app as well and moves the button if the user moves the app around on the desktop. Is this possible? Thanks

      Tom Wright tawright915@gmail.com

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

      It's possible if your code was written in unmanaged C++, but not VB.NET or C#. This is because the .NET Framework doesn't support the exports and static linking required to do something called "DLL injection". This would be required because your code would have to become part of a foreign process so it can respond to another applications Paint events so the button gets repainted when necessary and respond to the clicks on the button.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      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