I want to draw a editable TextBox on top of picture box and the user is allowed to enter text into this box.After entering text the text box should disappear and the text entered should be painted to the picture in the picture box.Please help me on this,I'am doing this in c#.
rainbow9 0 Newbie Poster
Recommended Answers
Jump to Post— manugm_1987 0Check for the keypress, when key is return then make textbox.visible property to false.
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) textBox1.Visible = false; }To Display text on picture box check this
Jump to Post— ddanbe 2,724Do you mean something like this? (Coords of Location are not correct)
public partial class Form1 : Form { private TextBox PTB public Form1() { InitializeComponent(); } private void pictureBox1_Click(object sender, EventArgs e) { PTB = new TextBox(); PTB.Location = new System.Drawing.Point(56, 193); PTB.Name = "textBox1"; PTB.Size …
All 6 Replies
manugm_1987 0 Junior Poster in Training
rainbow9 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
rainbow9 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
rainbow9 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.