F
Francesco
Hi all,
I am trying to make a UserControl with a TextBox in it.
I have to publish the TextChanged event of the inner TextBox, but I have
some trouble.
If I declare :
public event EventHandler TextChanged;
I get a compiler error saying that TextChanged is already declared and I
have to use :
public new event EventHandler TextChanged;
With the "new" keyword added the project compiles but when I drop the
component the TextChanged event doesn't appear in the properties of the
control.
I tried to look at the source code of UserControl with the Reflector
decompiler, and in its declaration there is the TextChanged event, but you
can't access it.
The same thing appears with the Text property.
What should I do to publish both the Text and TextChanged properties?
TIA
Ciao
Formentz
I am trying to make a UserControl with a TextBox in it.
I have to publish the TextChanged event of the inner TextBox, but I have
some trouble.
If I declare :
public event EventHandler TextChanged;
I get a compiler error saying that TextChanged is already declared and I
have to use :
public new event EventHandler TextChanged;
With the "new" keyword added the project compiles but when I drop the
component the TextChanged event doesn't appear in the properties of the
control.
I tried to look at the source code of UserControl with the Reflector
decompiler, and in its declaration there is the TextChanged event, but you
can't access it.
The same thing appears with the Text property.
What should I do to publish both the Text and TextChanged properties?
TIA
Ciao
Formentz