Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. insert emoticon into richtextbox [modified]

insert emoticon into richtextbox [modified]

Scheduled Pinned Locked Moved WCF and WF
question
1 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    angels777
    wrote on last edited by
    #1

    hi.. i would like to build a diary which i can click and insert the emoticon into the richtextbox.. how should i do tthat? if let say i want to put a emoticon in between some text in a richtextbox... so i click on one of the emoticon.. but it show the damn big picture instead of the actual size of the emoticon.. also. it is not in between the text.. how should i do? TextPointer tp = diary_richTextBox.CaretPosition; System.Windows.Controls.Image img = new System.Windows.Controls.Image(); BitmapImage myBitmapImage = new BitmapImage(); myBitmapImage.BeginInit(); myBitmapImage.UriSource = new Uri(@"c:\2.jpg", UriKind.RelativeOrAbsolute); myBitmapImage.EndInit(); img.Source = myBitmapImage; InlineUIContainer iu = new InlineUIContainer(img); tp.Paragraph.Inlines.Add(iu);

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups