I don't know if this is the best way to do this, but one way is to add an Image control, set the "ToolTipText" property to the text you want, and place it over the map in the place that you want. But you are stuck using rectangles using this method.
You can put 2 images in the one button, one when the button is not "pressed" and another when you hold the mouse down on it.
See the buttons properties sheet and select the picture you want for each state.
You can change these pictures at run time with code so they look "behind it
Creating transparent controls is not difficult to do, but they also become invisible to the mouse and keyboard. When I want to have custom buttons on my GUI then I use a PictureBox control along with a resource file from which I get the different images required to simulate a button. I used the mouse events MouseDown and MouseUp to switch the button images.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.