By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

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

DTeCH
P: 23
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.
Aug 23 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.