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.
Namespace: DevCase.Extensions.FormExtensionsAssembly: 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
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetNextControl(Of T As Control) (
form As Form,
forward As Boolean,
tabStopOnly As Boolean,
wrap As Boolean,
controlCollection As ControlControlCollection
) As Control
Dim form As Form
Dim forward As Boolean
Dim tabStopOnly As Boolean
Dim wrap As Boolean
Dim controlCollection As ControlControlCollection
Dim returnValue As Control
returnValue = form.GetNextControl(forward,
tabStopOnly, wrap, controlCollection)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
where T : Control
static Control^ GetNextControl(
Form^ form,
bool forward,
bool tabStopOnly,
bool wrap,
ControlControlCollection^ controlCollection
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetNextControl :
form : Form *
forward : bool *
tabStopOnly : bool *
wrap : bool *
controlCollection : ControlControlCollection -> Control when 'T : Control
No code example is currently available or this language may not be supported.
- 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.
- T
-
The type of the Control to search.
Control
The next
Control in the tab order.
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).