A
Alberto
This class inherits from Label and changes the Text when the user makes
double click over it:
class C: Label
{
private void InitializeComponent()
{
this.SuspendLayout();
//
// C
//
this.DoubleClick += new System.EventHandler(this.C_DoubleClick);
this.ResumeLayout(false);
}
private void C_DoubleClick(object sender, EventArgs e)
{
this.Text = "Prueba";
}
}
When I put a control C in a form, nothing happens when the user makes double
click over it. Why?
Thank you.
double click over it:
class C: Label
{
private void InitializeComponent()
{
this.SuspendLayout();
//
// C
//
this.DoubleClick += new System.EventHandler(this.C_DoubleClick);
this.ResumeLayout(false);
}
private void C_DoubleClick(object sender, EventArgs e)
{
this.Text = "Prueba";
}
}
When I put a control C in a form, nothing happens when the user makes double
click over it. Why?
Thank you.