Hello All,
I have spent the better part of the morning searching for info on how to do this, and while I have found some helpful information, nothing was completely applicable to what I am trying to do. A good example would be an interactive image of the United States:
First Decent Google Image Result for an exampleI need to have individual images of each state make up that larger image of the entire country. I need to be able to "swap" each states image out with an identical one in another color based on some information pulled from the database. Does that make sense?
The issue is that PictureBoxes do not support transparency. If I had a PictureBox for each state, they overlap each other and the top PictureBox blocks out some of the image in the PictureBox below. Furthermore, I would not be able to determine exactly which State/PictureBox was clicked on if they overlap. I found an article from
Bob Powell that describes how to create transparent controls. However, there are two issues with this. The first being that it is wrote in C, and all my attempts to convert it to VB ended in failure. The second being that I
think I would still have the issue of overlapping throwing off being able to determine which state image was clicked. I cant tell since I cant try it.
I also found an
article over at CodeProject which is also in C. Even if I was able to convert it to VB, it would still not work for my application. My App is for touchscreens, so logging the location of the cursor before the click would not work at all.
I am desperate for any ideas, tips, tricks, or suggestions anyone would be willing to offer up!