Jump to content

Click transparency - VB.net

I made a thread on StackOverflow, however the majority of people on there are dicks.

So, I am making an "overlay" of a sort. 

 

Long story short I need an image on top of everything (which I got). But I am trying to get it so it presses behind the image and does not focus the vb.net application. I can do it with only one color however (the white background color) with a transparency key so everything white is transparent. (however my image is not).

 

I tried to create a graphic but had no luck. Has anyone else been able to do this? - Thanks

CPU: i5 4670k @ 3.4GHz + Corsair H100i      GPU: Gigabyte GTX 680 SOC (+215 Core|+162 Mem)     SSD: Kingston V300 240GB (OS)      Headset: Logitech G930 

Case: Cosair Vengance C70 (white)                RAM: 16GB TeamGroup Elite Black DDR3 1600MHz       HDD: 1TB WD Blue                              Mouse: Logitech G602

OS: Windows 7 Home Premium                       PSUXFX Core Edition 750w                                                Motherboard: MSI Z97-G45               Keyboard: Logitech G510

Link to comment
Share on other sites

Link to post
Share on other sites

I could do it if I wasn't at school -.-

if you want to do it yourself download paint.net and paste your picture in, then get the magic wand and change the tolerance until it only detects the white, delete it then save it

BAM your good to go

Link to comment
Share on other sites

Link to post
Share on other sites

I could do it if I wasn't at school -.-

if you want to do it yourself download paint.net and paste your picture in, then get the magic wand and change the tolerance until it only detects the white, delete it then save it

BAM your good to go

Yeah, but the bits that are not white I need so I can see them, but I can click straight through them.

 

Thanks for the reply :)

CPU: i5 4670k @ 3.4GHz + Corsair H100i      GPU: Gigabyte GTX 680 SOC (+215 Core|+162 Mem)     SSD: Kingston V300 240GB (OS)      Headset: Logitech G930 

Case: Cosair Vengance C70 (white)                RAM: 16GB TeamGroup Elite Black DDR3 1600MHz       HDD: 1TB WD Blue                              Mouse: Logitech G602

OS: Windows 7 Home Premium                       PSUXFX Core Edition 750w                                                Motherboard: MSI Z97-G45               Keyboard: Logitech G510

Link to comment
Share on other sites

Link to post
Share on other sites

Your question should include the GUI framework you're working with.

 

If you're using WPF then it's easy. Control the transparency with the Opacity property. To click through the control set IsHitTestVisible to False.

 

If you're using WinForms, it's more difficult (consider switching to WPF). See here for clicking through a control. Unfortunately I'm not sure how to get full transparency on your image.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×