Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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...

UCM

>-)

Posted

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....

UCM

>-)

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...