Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - xtpControlComboBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpControlComboBox

 Post Reply Post Reply
Author
Message
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Topic: xtpControlComboBox
    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,

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post 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,

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.