Solved

How to put a picture in a text box.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now