Finds a control that has the provided identifier name.

FindItem(GotoDialog.DialogItem)

public System.Windows.Forms.Control FindItem(GotoDialog.DialogItem dialogItem);
Public Sub FindItem(ByVal dialogItem  As GotoDialog.DialogItem) As System.Windows.Forms.Control

Parameters

Parameter Description
dialogItem The name of the requested control represented by an enum of type GotoDialog.DialogItem.

Return Value

The requested control if found. Otherwise null.

Examples

The following examples remove the 'Table' item from the GotoDialog's 'Go to what' list.

TXTextControl.GotoDialog dlg = new TXTextControl.GotoDialog(textControl1);
System.Windows.Forms.ListBox ctrl = (System.Windows.Forms.ListBox)dlg.FindItem(TXTextControl.GotoDialog.DialogItem.TXITEM_GotoList);
ctrl.Items.RemoveAt(3);
Dim dlg As TXTextControl.GotoDialog = New TXTextControl.GotoDialog(textControl1)
Dim ctrl As System.Windows.Forms.ListBox = CType(dlg.FindItem(TXTextControl.GotoDialog.DialogItem.TXITEM_GotoList), System.Windows.Forms.ListBox)
ctrl.Items.RemoveAt(3)