The ComboboxBarItem in the XpToolBar does not catch the keyboard events.
As a result, the enter can''t be used to validate the entry and i can''t monitor what has been typed (like resttrict to numbers...)
Is there something i missed
Unfortunately, the TextBox in a ComboBoxBarItem cannot be exposed. This means that you don''t have access to the KeyPress event, so you won''t be able to respond to your user entering a value. You''ll have to parse the entry later.
However, you can validate the entry on Enter. If the Enter key is pressed (and the value of the ComboBoxBarItem was changed) the ComboBoxBarItem will fire a Click event.
Hope this helps.
SISilverFebruary 1, 2005 12:43 PM UTC
And what about using a real combo in the XPToolbar. Is it possible to do manually ?
AdministratorFebruary 1, 2005 01:07 PM UTC
XPToolbars are limited to BarItems only. However, a CommandBar can host a single control, which could be a ComboBox (or a Panel that contains one or more ComboBoxes).
If you''re using a BarManager in your application, please take a look at this forum post. It includes a sample that might help you and some information about a known issue to watch out for.