Print Page | Close Window

xtpControlComboBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3922
Printed Date: 21 November 2024 at 4:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: xtpControlComboBox
Posted By: moe188
Subject: xtpControlComboBox
Date Posted: 01 April 2006 at 11:59am

Hi,

I added this control xtpControlComboBox (where the user can type something to search for) to my menu bar, but: how can I be able to let the user type soemthing in the combobox, then when he hit 'Enter' the program will execute the search?

thank you,

 




Replies:
Posted By: SuperMario
Date Posted: 03 April 2006 at 12:41pm
    Dim ExtendedBar As CommandBar
    Dim x As CommandBarComboBox
    Set ExtendedBar = CommandBars.Add("Extended", xtpBarTop)
    With ExtendedBar.Controls
        
        Set x = .Add(xtpControlComboBox, ID_TOOLS_UNDO_COMBO, "Undo Combo")
        x.DropDownListStyle = True
      
    End With


Posted By: moe188
Date Posted: 03 April 2006 at 4:53pm

first of all, thank you for reply, your code did give an idea how to fix my problem, because your code will let me creat a new toolbar with a combobox, but I was looking for the combbox at the right corner of the menu bar.

now, how can I be able to detect what the user type, when he hit <Enter> button?

Thank you,

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net