Insert an image

CarcaBot

Well-known member
Joined
Apr 23, 2007
Messages
47
Location
Romania
Programming Experience
Beginner
Hello,

VB.NET:
str += " * " & text

i want replace the asterisk ( * ) with an image.
someone can show me how ?

thanks !
 
You can't place an image in a string.
 
Other options (even if we know nothing about what you actually ask, you haven't given much clue to what is actually happening!)

You could have two Label controls for text and a Picturebox control between them that displayed the image.

If you were to draw the string somewhere you would calculate where to draw the string parts and utilize Graphics.DrawString and calculate where to draw image and utilize Graphics.DrawImage.
 
First, explain the issue you are having clearly and second, post the code that is causing the problem and we will be glad to help.

As for sample code and stuff like that, I think it would be best if you do research on your own as that would be the best way to learn.

HINT: Find the keywords used in the answer and Google it.
 
Back
Top