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. handle to process

handle to process

Scheduled Pinned Locked Moved C#
question
3 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.
  • L Offline
    L Offline
    likefood
    wrote on last edited by
    #1

    I did a brief search of CP articles and didn't see anything... Is it possible to get the handle to a differet process/program running? I want to try to make a program that changes programs' opacity, and I thought I'd start by trying to use the two lines: Form f = Form.FromHandle([some app's handle]); f.Opacity = 0.5; I know it looks too easy to work right, and I know it sounds weird, but I want to try it anyway.

    -Daniel Typing too fast fro my owngood

    P 1 Reply Last reply
    0
    • L likefood

      I did a brief search of CP articles and didn't see anything... Is it possible to get the handle to a differet process/program running? I want to try to make a program that changes programs' opacity, and I thought I'd start by trying to use the two lines: Form f = Form.FromHandle([some app's handle]); f.Opacity = 0.5; I know it looks too easy to work right, and I know it sounds weird, but I want to try it anyway.

      -Daniel Typing too fast fro my owngood

      P Offline
      P Offline
      pbraun
      wrote on last edited by
      #2

      In your help files look up "Process". You can get a list of running processes that way. And if you already know the name of the process you can also get a list of only those processes with the specified name. From there you can get the process handle and so on. Phil

      L 1 Reply Last reply
      0
      • P pbraun

        In your help files look up "Process". You can get a list of running processes that way. And if you already know the name of the process you can also get a list of only those processes with the specified name. From there you can get the process handle and so on. Phil

        L Offline
        L Offline
        likefood
        wrote on last edited by
        #3

        Awesome, thanks!

        -Daniel Typing too fast fro my owngood

        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