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
1310
Adding items to a combo box tool in the Quickaccesstoolbar
posted

Can't figure this one out.  Can anyone show me some VB code to accomplish this?

*********************** 

Got it!  For anyone else that needs it.  Just had to take a while to dig deeper into Infragistics documentation.

   ' Find all Network PC printers installed.

            Dim pkInstalledPrinters As String 

            Dim PrinterSelect As ComboBoxTool = Me.UltraToolbarsManager1.Ribbon.QuickAccessToolbar.Tools.Item("this will be the key field of  

                 your QAT tool")
           
            For Each pkInstalledPrinters In PrinterSettings.InstalledPrinters
                PrinterSelect.ValueList.ValueListItems.Add(pkInstalledPrinters)
            Next pkInstalledPrinters

            ' Set the combo to the first printer in the list
            PrinterSelect.SelectedIndex = 0