I have a Combobox tool on a tab in my Ribbon and I am wondering how I can fill it from a MS access datasource?
Second question can this be a two collumns valuelist and can the keyvalue collumn be hidden.
this in VB.Net
So what you would do is get the tool from the ToolbarsManager and cast it into a ComboBocTool. Then check the Value property.
ComboBoxTool comboBoxTool = (ComboBoxTool)this.UltraToolbarsManager1.Tools["My Combobox Tool"];
Debug.Writeline(comboBoxTool.Value);
I mean,: I'm trying to get value or index of Item in Combobox Tool on ribbon Tool Bar to compare. :).
Sorry about inconvenient,
Thanks
nghiemnd said:Now, i retrieve get value about that but i don't find method or properties to get its.
I do not understand your question. There appear to be some words missing from your last sentence.
Dear Mike,
Please help me about combobox on ribbon
I was setting value list in combobox are:
Now, i retrieve get value about that but i don't find method or properties to get its. Please help me.
Thanks,
Ps: i'm using C# on VS 2008.
Hi Ronny,
Cast the tool into a ComboBoxTool (just as I did in my sample code) and then user the properties on that tool like Value, SelectedItem, or SelectedIndex. Just as you would for any ComboBox.