Finds a control that has the provided identifier name.
public System.Windows.Forms.Control FindItem(DeleteBookmarksDialog.DialogItem dialogItem);
Public Sub FindItem(ByVal dialogItem As DeleteBookmarksDialog.DialogItem) As System.Windows.Forms.Control
Parameter | Description |
---|---|
dialog |
The name of the requested control represented by an enum of type Delete |
The requested control if found. Otherwise null.
The following example removes the 'Go To' button from the Delete
TXTextControl.DeleteBookmarksDialog dlg = new TXTextControl.DeleteBookmarksDialog(textControl1);
System.Windows.Forms.Control ctrl = dlg.FindItem(TXTextControl.DeleteBookmarksDialog.DialogItem.TXITEM_GotoBookmark);
ctrl.Parent.Controls.Remove(ctrl);
Dim dlg As TXTextControl.DeleteBookmarksDialog = New TXTextControl.DeleteBookmarksDialog(TextControl1)
Dim ctrl As System.Windows.Forms.Control = dlg.FindItem(TXTextControl.DeleteBookmarksDialog.DialogItem.TXITEM_GotoBookmark)
ctrl.Parent.Controls.Remove(ctrl)