Solved

How to put a picture in a text box.

Posted on 1998-11-05
5
147 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
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 90 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

777 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