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. C#
  4. How to Add Image to Multiline text box in C# Win Forms

How to Add Image to Multiline text box in C# Win Forms

Scheduled Pinned Locked Moved C#
csharphelptutorial
4 Posts 4 Posters 0 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.
  • S Offline
    S Offline
    sribachana
    wrote on last edited by
    #1

    Hi, i want to add a image to the selected text area in the multiline textbox. can anybody help me regarding this...

    V P G 3 Replies Last reply
    0
    • S sribachana

      Hi, i want to add a image to the selected text area in the multiline textbox. can anybody help me regarding this...

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      An image in a textbox? Sounds like you need a RichTextBox.

      Cheers, Vikram.


      "If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy

      1 Reply Last reply
      0
      • S sribachana

        Hi, i want to add a image to the selected text area in the multiline textbox. can anybody help me regarding this...

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Possibly the easiest way would be to subclass the control and handle the onpaint method to draw in your own image.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        1 Reply Last reply
        0
        • S sribachana

          Hi, i want to add a image to the selected text area in the multiline textbox. can anybody help me regarding this...

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          I don't think you can insert image in a textbox. Instead, this article describes how it can be done in a richtextbox: Insert Plain Text and Images into RichTextBox at Runtime[^]

          #region signature my articles #endregion

          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