private void OnTextBoxDoubleClick(object sender, Point pt)
{
if (_textBox != null)
{
// Get any component associated with the current mouse position
Component component = _textBox.DesignerComponentFromPoint(pt);
if (component != null)
{
// Get the designer for the component
IDesigner designer = _designerHost.GetDesigner(component);
// Request code for the default event be generated
designer.DoDefaultAction();
}
}
}