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. What is HandleCreated Event?

What is HandleCreated Event?

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

    Hello, I've recently found stranged things could happen when I set up an event handler for the HandleCreated Event in C# windows controls. So what is HandleCreated Event? When will it be raised? Thanks in advance.:)

    A 1 Reply Last reply
    0
    • S SeeBees

      Hello, I've recently found stranged things could happen when I set up an event handler for the HandleCreated Event in C# windows controls. So what is HandleCreated Event? When will it be raised? Thanks in advance.:)

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      Well, a handle is pretty much just a pointer to the object, and can be used for a variety of things. For example say you create a bitmap and draw a picture onto it, and you then wanted to pass this image to another form, instead of passing the whole image, you could just pass the handle and then use Bitmap.FromHandle(). But, i would have thought that the handle would be created at the same time as the instance of an object, unless you can somehow make more. I'm not so savvy with handles. If you check the MSDN documentation you should find the answers you seek. EDIT: Nevermind, MSDN doesn't help much. It just says that it fires when a handle is created (wow, really?!) and that it is useful for debugging.

      My current favourite word is: PIE! Good ol' pie, it's been a while.

      S 1 Reply Last reply
      0
      • A Anthony Mushrow

        Well, a handle is pretty much just a pointer to the object, and can be used for a variety of things. For example say you create a bitmap and draw a picture onto it, and you then wanted to pass this image to another form, instead of passing the whole image, you could just pass the handle and then use Bitmap.FromHandle(). But, i would have thought that the handle would be created at the same time as the instance of an object, unless you can somehow make more. I'm not so savvy with handles. If you check the MSDN documentation you should find the answers you seek. EDIT: Nevermind, MSDN doesn't help much. It just says that it fires when a handle is created (wow, really?!) and that it is useful for debugging.

        My current favourite word is: PIE! Good ol' pie, it's been a while.

        S Offline
        S Offline
        SeeBees
        wrote on last edited by
        #3

        Thanks for your helpful explanation.:-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