System.Windows.Forms.AccessibleObject.DoDefaultAction()

Here are the examples of the csharp api class System.Windows.Forms.AccessibleObject.DoDefaultAction() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

View license
public override void DoDefaultAction()
        {
            ISelectionService selectionService = GetService(typeof(ISelectionService)) as ISelectionService;
            if (selectionService != null)
                selectionService.SetSelectedComponents(new object[] { this.activityDesigner.Activity }, SelectionTypes.Replace);
            else
                base.DoDefaultAction();
        }

2. Example

View license
public override void DoDefaultAction()
            {
                ISelectionService selectionService = GetService(typeof(ISelectionService)) as ISelectionService;
                if (selectionService != null)
                    selectionService.SetSelectedComponents(new object[] { this.connectorHitInfo.SelectableObject }, SelectionTypes.Replace);
                else
                    base.DoDefaultAction();
            }

3. Example

View license
public bool DoDefaultAction()
        {
            int index = GetFocusedControlIndex();
            if (index >= 0)
            {
                if (_controls[index] is Control)
                    return false;
                AccessibleObject obj = GetAccessibleObject(index);
                obj.DoDefaultAction();
                return true;
            }
            return false;
        }