UserControl actually has OnTextChanged event

 Wow, didn't know that adding

[Browsable(true), EditorBrowsable(EditorBrowsableState.Always)]
new public event EventHandler TextChanged
{
add {base.TextChanged += value;}
remove {base.TextChanged -= value;}
}

and

private void txtbox1_TextChanged(object sender, EventArgs e)
{base.OnTextChanged(e);}

Actually gives a textbox based usercontrol a TextChanged event at design time, much nicer than other methods i've used previously.

Print | posted on Friday, January 4, 2008 4:19 PM

Feedback

# re: UserControl actually has OnTextChanged event

Left by silas01 at 1/9/2008 2:41 AM
Gravatar thanking oyu

# re: UserControl actually has OnTextChanged event

Left by Vrancken G at 8/27/2008 4:52 AM
Gravatar nice 1.
Thanks for posting

# re: UserControl actually has OnTextChanged event

Left by xcx at 3/16/2010 8:14 AM
Gravatar Muy bueno, era justo lo que necesitaba...Muchas gracias

Your comment:





 

Copyright © Neil Smith

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski