G
Guest
i have a textBox1 control and i'm handling it's double click event thru
textBox_DoubleClick(object sender, System.EventArgs e). now is there a way to
clone this control at runtime including it's event(s) so that when i
double-click the cloned control, textBox_DoubleClick() would get called?
my code can clone the control right now, but i don't know how to proceed
with cloning events. I was trying to use EventInfo and EventDescriptor but
both needs a reference to the delegate.
tia,
ren
textBox_DoubleClick(object sender, System.EventArgs e). now is there a way to
clone this control at runtime including it's event(s) so that when i
double-click the cloned control, textBox_DoubleClick() would get called?
my code can clone the control right now, but i don't know how to proceed
with cloning events. I was trying to use EventInfo and EventDescriptor but
both needs a reference to the delegate.
tia,
ren