I am trying to make an "overlay" application if you want to call it that. So you can see everything on the very top layer (above all applications) but you cannot interact with any of it so the mouse clicks are behind this window. I have managed to do it with the main Form with a TransparencyKey for the background color (white). But adding a PictureBox, the things that are not white on it are not transparent.
I found a solution in C# but not sure how to "translate" it or apply it to VB.net. Click through transparency for Visual C# Window Forms?
Things I have done and tried: Create a Graphic of the image instead but I was not successful. As so:
Dim imageFile As Image = Image.FromFile("MyImage.jpg")
' Create graphics object for alteration.
Dim newGraphics As Graphics = Graphics.FromImage(imageFile)
' Alter image.
newGraphics.FillRectangle(New SolidBrush(Color.Black), _
100, 50, 100, 100)
' Draw image to screen.
newGraphics.Graphics.DrawImage(imageFile, New PointF(0.0F, 0.0F))
Found this on MSDN and tried to use it and various other examples I found on the internet but no luck.
So overall: Is there any way to make a whole application "transparent" to mouse clicks. What is a method of making each object (such as PictureBoxes) transparent to mouse clicks. - Thanks