FormExtensionsGetNextControlT(Form, Boolean, Boolean, Boolean, ControlControlCollection) Method

Retrieves the next control of the specified type forward or back in the tab order of child controls.

Definition

Namespace: DevCase.Extensions.FormExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Control GetNextControl<T>(
	this Form form,
	bool forward,
	bool tabStopOnly,
	bool wrap,
	ControlControlCollection controlCollection
)
where T : Control

Parameters

form  Form
The Form to start the search with.
forward  Boolean
True to search forward in the tab order; False to search backward.
tabStopOnly  Boolean
True to ignore the controls with the TabStop property set to false; otherwise, False.
wrap  Boolean
True to continue searching from the first control in the tab order after the last control has been reached; otherwise, False.
controlCollection  ControlControlCollection
The FormControlCollection to search within.

Type Parameters

T
The type of the Control to search.

Return Value

Control
The next Control in the tab order.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Form. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also