When set to ‘0 – Default’, control styles ‘1 – Listbar’, ‘2 – Toolbox’, and '3 - OutlookNavigationPane' will resolve to False. Control styles ‘0 – Explorer Bar’ and '4 - VisualStudio2005Toolbox' will resolve to True.
Note that the control’s TabStop property is also honored with regard to accepting focus. If the TabStop property is set to False, the control cannot be tabbed to and therefore will not accept focus via the keyboard.
If the TabStop property is set to true or if the control is clicked on, then the AcceptsFocus property determines whether the UltraExplorerBar accepts focus.
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click ' Set the AcceptsFocus property to 'Default', then test AcceptsFocusResolved below for each ' of the control styles. Me.ultraExplorerBar1.AcceptsFocus = DefaultableBoolean.Default ' When we set the control style to ExplorerBar, AcceptsFocusResolved will return true. Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar Debug.WriteLine("AcceptsFocusResolved = " + Me.ultraExplorerBar1.AcceptsFocusResolved.ToString()) ' When we set the control style to Listbar, AcceptsFocusResolved will return false. Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Debug.WriteLine("AcceptsFocusResolved = " + Me.ultraExplorerBar1.AcceptsFocusResolved.ToString()) ' When we set the control style to Toolbox, AcceptsFocusResolved will return false. Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox Debug.WriteLine("AcceptsFocusResolved = " + Me.ultraExplorerBar1.AcceptsFocusResolved.ToString()) ' Of course, we can explicitly set the AcceptsFocus property to either true or false for ' any control style to override the default. Me.ultraExplorerBar1.AcceptsFocus = DefaultableBoolean.True ' When we set the control style to Listbar, AcceptsFocusResolved now returns true Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Debug.WriteLine("AcceptsFocusResolved = " + Me.ultraExplorerBar1.AcceptsFocusResolved.ToString()) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button1_Click(object sender, System.EventArgs e) { // Set the AcceptsFocus property to 'Default', then test AcceptsFocusResolved below for each // of the control styles. this.ultraExplorerBar1.AcceptsFocus = DefaultableBoolean.Default; // When we set the control style to ExplorerBar, AcceptsFocusResolved will return true. this.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar; Debug.WriteLine("AcceptsFocusResolved = " + this.ultraExplorerBar1.AcceptsFocusResolved.ToString()); // When we set the control style to Listbar, AcceptsFocusResolved will return false. this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar; Debug.WriteLine("AcceptsFocusResolved = " + this.ultraExplorerBar1.AcceptsFocusResolved.ToString()); // When we set the control style to Toolbox, AcceptsFocusResolved will return false. this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox; Debug.WriteLine("AcceptsFocusResolved = " + this.ultraExplorerBar1.AcceptsFocusResolved.ToString()); // Of course, we can explicitly set the AcceptsFocus property to either true or false for // any control style to override the default. this.ultraExplorerBar1.AcceptsFocus = DefaultableBoolean.True; // When we set the control style to Listbar, AcceptsFocusResolved now returns true; this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar; Debug.WriteLine("AcceptsFocusResolved = " + this.ultraExplorerBar1.AcceptsFocusResolved.ToString()); }
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