Tuesday, 15 July 2014

Image inside a TextBox Control C# -


I have a windows form with a text box and I send some text with an image inside an inbox list of inbox Wish message For the preview of the image, the image I used to use Javascript is done with FileUpload. I want to upload this image to textbox and save it to my database. Is there any way to include this picture? I've only seen RichTextBox about drag and drop?

This is what I want. I can see That's the same here

Adds control to the text box that you can do , which shows an image.

Label imgLabel = new Label (); ImgLabel.Image = Image.FromFile (some file); ImgLabel.AutoSize = false; ImgLabel.Size = imgLabel.Image.Size; ImgLabel.ImageAlign = ContentElement.mill center; ImgLabel.Text = ""; ImgLabel.BackColor = Color.Transparent; ImgLabel.Parent = textBox1; // Choose a place where it will not get much more in the imagery. Location = new point (text box 1. clients: with - imgb.bl. Picture. With, 0);

enter image details here

image Float above the text, cover it and take it on the path: - (

  • Keep the text box behind the text. I do not know of any control which it can do in Winforms , both TextBox and rich textbox do not support transparency, Hi. .
  • Embed the image in the text and flip around it. You need to use RichTextBox !

  • No comments:

    Post a Comment