Return the resolved value of the
AcceptsFocus property.
The following code shows how the AcceptsFocus property and the AcceptsFocusResolved property work together.
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
'Declaration
Public ReadOnly Property AcceptsFocusResolved As Boolean
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());
}
'Declaration
Public ReadOnly Property AcceptsFocusResolved As Boolean
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