Finds a control that has the provided identifier name.
public System.Windows.Forms.Control FindItem(GotoDialog.DialogItem dialogItem);
Public Sub FindItem(ByVal dialogItem As GotoDialog.DialogItem) As System.Windows.Forms.Control
Parameter | Description |
---|---|
dialog |
The name of the requested control represented by an enum of type Goto |
The requested control if found. Otherwise null.
The following examples remove the 'Table' item from the Goto
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)