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?
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);
image Float above the text, cover it and take it on the path: - (
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. . RichTextBox
!
No comments:
Post a Comment