?
Solved

How to put a picture in a text box.

Posted on 1998-11-05
5
Medium Priority
?
152 Views
Last Modified: 2010-04-30
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.
0
Comment
Question by:testing38
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1443406
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.

M

0
 

Author Comment

by:testing38
ID: 1443407
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...
0
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 360 total points
ID: 1443408
you can use a picturebox... and have an transparent label in your picturebox for text..
<or array of labels if needed>
0
 

Author Comment

by:testing38
ID: 1443409
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
0
 

Expert Comment

by:lsanjose
ID: 1443410
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.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question