Adding images to a textbox?

Hi there,

Got a 'quick' question... Can I add an image to a textbox? Or can I make it look like an image is in the textbox?

Thanks in advance!
SiebeAsked:
Who is Participating?
 
SethiConnect With a Mentor Commented:
You can add image to a Richtextbox control. The following links provide excellent code to show how picture can be added to Richtextbox control:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=37001&lngWId=1

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=11815&lngWId=1
0
 
JohnMcCannCommented:
No you can't add an image to a textbox

Use an image control and use the winapi to set the left margin of the textbox to accomadate the image.You would have to use the winapi to adjust the margins of the textbox to accomadate the image and either paint the image using BitBlt or use an image control.
0
 
SiebeAuthor Commented:
And what about the richtext format textboxes?
0
 
SiebeAuthor Commented:
Thanks! Just what I needed, with a little tweeking tough
0
 
SethiCommented:
;-)
0
All Courses

From novice to tech pro — start learning today.