Geeks With Blogs
Neil Smith [blog]code til ur fingers bleed January 2008 Entries


Posted On Sunday, January 13, 2008 2:42 PM

UserControl actually has OnTextChanged event
Wow, didn't know that adding [Browsable(true), EditorBrowsable(EditorBrows... 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 ......

Posted On Friday, January 4, 2008 4:19 PM

Copyright © Neil Smith | Powered by: