Hi:
A simple Question. I am new to Visual C#.
I have a PicutreBox control visible on a form.
I have a textBox control on the same form.
when I start entering the text in the textBox,
I want the PictureBox to disappear.
Could you please let me know how to do this.
Thanks for your help.
Regards,
bsoo
Make PictureBox invisible when I type text in a textBox
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
WILLIAM MARIASOOSAI2 pointsPosted Dec 22, 2012, 7:04 PM EST
I was able to figure out. The following code works.
-------------------------------------------------
private void txtBox2_KeyDown(object sender, KeyEventArgs e)
{
if (pic1.Visible)
{
pic1.Visible = false;
}
}
----------------------------------------------
Thanks & Regards
bsoo.