Print Page | Close Window

Combobox Items Not Displaying

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=5287
Printed Date: 20 June 2025 at 1:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Combobox Items Not Displaying
Posted By: jcollier
Subject: Combobox Items Not Displaying
Date Posted: 13 October 2006 at 5:53pm
Using the following code can anyone tell me why, when I click the combo on the CommandBar, nothing appears?  It just kinda flickers and nothing else happens.

Dim Control As CommandBarControl
Dim FormatBar As CommandBar

Set FormatBar = CommandBars.Add("Format", xtpBarTop)
CommandBars.ActiveMenuBar.Visible = False

With FormatBar.Controls
    Set Control = .Add(xtpControlComboBox, 1, "Font")
    Control.Width = 140
    Control.DropDownListStyle = True
    Control.AddItem "Tahoma"
    Control.AddItem "Arial"
    Control.AddItem "Times New Roman"
End With




Replies:
Posted By: jcollier
Date Posted: 16 October 2006 at 1:34pm
Seems to work if I take out the .DropDownListStyle line.  Not sure why but it works.


Posted By: tobi
Date Posted: 16 October 2006 at 3:30pm
Did you try to put .DropDownListStyle before adding entries ?



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