UCM Posted January 13, 2003 Posted January 13, 2003 Does any one know how I can insert an images in between words in a RichTextBox? I would like to read a string and when certain characters are found such as ( H ) then I can insert in their place an image... Quote UCM >-)
UCM Posted January 14, 2003 Author Posted January 14, 2003 What I am looking for on this subject is the ability to send text to a RichTextBox and then add an image like an Icon, BitMap, Jpeg, or Gif then add more text and more images, ect ect... Think how AIM does it.... Quote UCM >-)
*Experts* Nerseus Posted January 14, 2003 *Experts* Posted January 14, 2003 First, I'm no expert on the RTB control. Knowing that, is it possible to add images to one? It sounds like you want to just append some text and/or images to a rich text box. If so (check that you can first), I'd suggest not replacing *every* occurrence of ( H ) with your own icon, but concentrate on the codes needed to get the image in there and just append the properly formatted string to the textbox. I haven't played around with the RTB in a few years but I remember that to change existing text you had to first find it, set the selection properties (start and length?) and then adjust the selected text. If you can limit your scope to just appending, it may make things a lot easier. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.