GH_MenuTextBox

References
public class GH_MenuTextBox
Utility control for putting textboxes into menus.

Constructors

GH_MenuTextBox

#
Constructor for TextBox collection.
public GH_MenuTextBox(
dropDown,
The menu dropdown into which to embed this textbox control.
text,
The original text to be displayed in the textbox.
lockFocus
If True, the control will disable the other menu items when it gets focus.
)

Properties

OriginalText

#
Gets or sets the original text that was visible when the control was first displayed.
public string OriginalText { get; set; }

Text

#
Gets or sets the current text.
public string Text { get; set; }

TextBoxItem

#
Gets the text box control embedded in the menu.
public ToolStripTextBox TextBoxItem { get; }

Width

#
Gets or sets the width of the control.
public int Width { get; set; }

Methods

CloseEntireMenuStructure

#
Call this function to close the ENTIRE menu structure.
public void CloseEntireMenuStructure()

Events

KeyDown

#
Raised whenever a key is pressed.
public event GH_MenuTextBox.KeyDownEventHandler KeyDown

TextChanged

#
Raised whenever the text in the textbox changes.
public event GH_MenuTextBox.TextChangedEventHandler TextChanged