'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 )
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.
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); }
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