All C# extension methods for type control
-
SafeInvoke
Properly invokes an action if it is required. Best way to handle events and threaded operations on a form.
-
FindControl<T>
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.
-
GetChildren
This is a recursive function to get all child controls under the target control.
-
FindParent
A simple type safe method to find a parent control
-
FindControlR
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.
-
FindControlByType
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
-
FindControlsByType
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
-
FindImmediateParentOfType<T>
An extension method to find the parent control of a specific type in asp.net
-
FindControlsByTypeRecursive
Find recursively a list of all controls of type T within a given control