Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Unable to display selected Index on form Load for UltraToolbar Manager ComboBoxTool
posted

I want to force the toolbarstyle but I can't get the "Office2013" to display when formloads.  

Using SelectedIndex gets an error (

System.ArgumentOutOfRangeException occurred
HResult=0x80131502
Message=Index was out of range. Must be non-negative and less than the size of the collection.)

Code used:

Infragistics.Win.UltraWinToolbars.ComboBoxTool cb = new Infragistics.Win.UltraWinToolbars.ComboBoxTool("ComboBoxTool1");
ultraToolbarsManager1.Style = ToolbarStyle.Office2013;
cb.SelectedIndex =0;