• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

How to put a picture in a text box.

I would like to put a picture in a text box and then write over it. Is there some way to do this? I would like to also be able to get the DC of this text box so I can do a BitBlt into it. If this is possible then please tell me how. Thanks in advance.
1 Solution
Text box doesn't have a picture property so you can't put a picture in it. However you can put *text* in a picture box.


testing38Author Commented:
Is there any other way to do this other than BitBlting the text in there from a nother HDC? If not then I would have to make a .bmp file of all the fonts I want to use. Big job! But it can be done. But if there is another way...
you can use a picturebox... and have an transparent label in your picturebox for text..
<or array of labels if needed>
testing38Author Commented:
Thanks a bunch! Here ya go!!! I got it to work just the way you said... Kinda makes you wonder... Why didn't I think of that... Thanks again
use also a usercontrol where the form.picture = picture and inser a label for the text.

l'avantage de ce procede est que vous pouvez utiliser par la suite l' objet  dans d'autres projets.

P.s. Si voius ajoutez deux labels vous pouvez fauire des effets de 3d.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now