Geeks With Blogs
Neil Smith [blog]code til ur fingers bleed
 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.

Posted on Friday, January 4, 2008 4:19 PM | Back to top


Comments on this post: UserControl actually has OnTextChanged event

# re: UserControl actually has OnTextChanged event
Requesting Gravatar...
thanking oyu
Left by silas01 on Jan 09, 2008 2:41 AM

# re: UserControl actually has OnTextChanged event
Requesting Gravatar...
nice 1.
Thanks for posting
Left by Vrancken G on Aug 27, 2008 4:52 AM

# re: UserControl actually has OnTextChanged event
Requesting Gravatar...
Muy bueno, era justo lo que necesitaba...Muchas gracias
Left by xcx on Mar 16, 2010 8:14 AM

Your comment:
 (will show your gravatar)


Copyright © Neil Smith | Powered by: GeeksWithBlogs.net | Join free