what is the code for showing the button_Click event in a text box.....?
MaiHunDown
0
Newbie Poster
Recommended Answers
Jump to PostHi MaiHunDown, welcome here!
Rather strange question.
What do you mean?
A TextBox has a Click or MouseClick event.
Do you want to show some info in a textbox after clicking a button?
Jump to PostIn the Click event of a button you could set the Text property of your TextBox.
Like so:private void button1_Click(object sender, EventArgs e) { this.textBox1.Text = "Hello world!"; }
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
MaiHunDown
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Lusiphur
commented:
Helpful, to the point :)
+1
MaiHunDown
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
hassan12345
0
Light 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.