I've been trying this for a while with transparent textBox, but it seems that it's completely bugged so I have to ask it here. How do I use this pictureBox to write text on it (use pictureBox as textBox):
Thanks a lot for any answer you'll give me.
I've been trying this for a while with transparent textBox, but it seems that it's completely bugged so I have to ask it here. How do I use this pictureBox to write text on it (use pictureBox as textBox):
Thanks a lot for any answer you'll give me.
Use a Panel instead of a Picturebox. Draw on the Panel. Put a Textbox on the Panel. You'll find that the panel will save as an image (bmp,jpg etc) including the Textbox.
The whole way winforms does transparency is a hack, and what you're trying to do isn't really going to be possible.
It does this by taking the background color of the layer below it and sets it to its own color. You can see this in your own image as the background color of the picture box is the default control color, which in turn means that the labels color is this.
In the image you've shown, the image seems to be a solid color, so it might be an option to set the text's background color to the same as that.
If its a dynamic image then you'll have to hack your own solution together, some that come to mind are: