Abhijit  Patil

Abhijit Patil

  • NA
  • 3.8k
  • 1.6m

how to show panel in textchange event of user control

Mar 25 2014 10:13 AM
hi,
 i have one user control i need to show one panel inside gridview ,when cursor goes to textbox .for that i used text change event of textbox.
i am trying to following code
 
private void textBox2_TextChanged(object sender, EventArgs e)
{
panel1.Visible=true;
panel1.Location=new Point (20,20);
panel1.Controls.Add(dataGridView1);
}
 
 
but it is not shown panel.
 
 
 

Answers (2)