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. High Light a part of PictureBox

High Light a part of PictureBox

Scheduled Pinned Locked Moved C#
questioncsharpdesign
4 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.
  • M Offline
    M Offline
    morteza57
    wrote on last edited by
    #1

    hi, i design a windows application with csharp. I want allow to users high light a part of the picturebox with drag mouse on it. How can i do? Thanx

    C 1 Reply Last reply
    0
    • M morteza57

      hi, i design a windows application with csharp. I want allow to users high light a part of the picturebox with drag mouse on it. How can i do? Thanx

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      One day, I intend to write a picture box derived control that does all the things that people try to do with it now, but it just can't do. Until I do, you need to ditch the picture box, draw the image in your own Paint handler, and draw your highlight over the top of it.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      M 1 Reply Last reply
      0
      • C Christian Graus

        One day, I intend to write a picture box derived control that does all the things that people try to do with it now, but it just can't do. Until I do, you need to ditch the picture box, draw the image in your own Paint handler, and draw your highlight over the top of it.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        M Offline
        M Offline
        morteza57
        wrote on last edited by
        #3

        Dear Christian Graus , if I use draw image in own Paint handler , back color of darawed image cover the picture box and i can not see part of picture box that is behind the drawed image.i want behind of drawed image be visible as highlight. please help

        C 1 Reply Last reply
        0
        • M morteza57

          Dear Christian Graus , if I use draw image in own Paint handler , back color of darawed image cover the picture box and i can not see part of picture box that is behind the drawed image.i want behind of drawed image be visible as highlight. please help

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          *sigh* WHAT picture box ? I just told you, if you want to impliment selection, you need to get rid of the picture box and draw it yourself.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          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