GH_MenuTextBox

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

Constructors

GH_MenuTextBox

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

Properties

OriginalText

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

Text

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

TextBoxItem

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

Width

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

Methods

CloseEntireMenuStructure

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

Events

KeyDown

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

TextChanged

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