How to Dim or Fade an image in a picturebox, or form background?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DTeCH
    New Member
    • Apr 2011
    • 23

    How to Dim or Fade an image in a picturebox, or form background?

    Hey dudes :)

    I building a "LightShot" screenshot clone for windows, & all is going well to my suprise. :D I just want the image URL returned instead of only sometimes. LightShot moistly gives a URL to their site to view the image to advertise themselves i guess. :)

    What I want to do now is be able to dim out the desktop when the PrtScrn button is pressed.

    The desktop is covered with a borderless form in full-screen that has a full image of the desktop in a picturebox control that's docked to fill the whole form.

    This way, the desktop appears to still be there, but no longer clickable, until the selection area is drawn, & edited, then upload, or cancel is clicked... at which time the form will vanish (appearing to brighten back to normal... un-dimm), & show the upload progress at the lower right of the screen, or close completely.

    What I want to do is have the image fade out, or dim out a bit, & only the selection area that is being selected, remain as normal.

    I'm not sure if the selection part remaining as normal is even possible with VB.NET, but for now, I just want the "background " to dim out, or fade a bit, but no idea how to do it.

    Any help will be awesome as usual! :D

    ps: Maybe just dropping the opacity of the fullscreen form to something like 10 or so would do the trick... partly showing the real desktop underneath, then having the selection area shine through the form somehow. Anyway, that's another topic i guess lol.
    Last edited by DTeCH; Aug 23 '15, 02:53 AM. Reason: added PS:
Working...