All C# extension methods for type control
Properly invokes an action if it is required. Best way to handle events and threaded operations on a form.
Generic recursive FindControl.
Strongly Typed Databinding
This is an extension that I use for doing strongly typed databinding to controls in a winforms project. I dislike using strings to databind because they do not generate compiler errors when the bound object changes. This extension allows you to, instead of using a string, use an expression to bind to for both the control property and the object property.
This is a recursive function to get all child controls under the target control.
A simple type safe method to find a parent control
Recursive find control method used for finding controls within templates.
Resize To Text Width
Resizes width of a Windows control to the text that contains.
Used in conjunction with GetChildren(), it will return a T from a list of children of a control. If you are looking to return a list of T, use FindControlsByType() at http://www.extensionmethod.net/Details.aspx?ID=310 Get Children is located at: http://www.extensionmethod.net/Details.aspx?ID=309
Used in conjunction with GetChildren(), it will return a list of T from a list of children of a control. Get Children is located at: http://www.extensionmethod.net/Details.aspx?ID=309
An extension method to find the parent control of a specific type in asp.net