Version

PerformKeyAction Method (UltraExplorerBar)

Simulates user interaction with the control.
Syntax
'Declaration
 
Public Overridable Function PerformKeyAction( _
   ByVal actionCode As UltraExplorerBarAction, _
   ByVal shift As Boolean, _
   ByVal control As Boolean _
) As Boolean
public virtual bool PerformKeyAction( 
   UltraExplorerBarAction actionCode,
   bool shift,
   bool control
)

Parameters

actionCode
The action to perform
shift
True to behave as if the shift key is down
control
True to behave as if the ctl key is down

Return Value

True if the action was performed successfully
Remarks

Invoke this method to simulate an action the user can perform.

You can use the CurrentState property to determine the state of the control when the action is about to be performed.

Example
The following code shows how to use the control's PerformKeyAction method to force the control to perform one of its built in actions.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button90_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button90.Click

		' Using the built-in actions of the ExplorerBar control, activate the first group in the
		' control and then click it.
		Me.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ActivateFirstGroup, False, False)
		Me.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ClickActiveGroup, False, False)

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button92_Click(object sender, System.EventArgs e)
		{
			// Using the built-in actions of the ExplorerBar control, activate the first group in the
			// control and then click it.
			this.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ActivateFirstGroup, false, false);
			this.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ClickActiveGroup, false, false);
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also