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

Project: referencesource
Source File: ActivityDesignerAccessibleObject.cs
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

Project: referencesource
Source File: SequenceDesignerAccessibleObject.cs
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

Project: OpenLiveWriter
Source File: LCCCFocusAndAccessibilityController.cs
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;
        }