I have defined a combo box in my form.
define private variable comboBoxRoles as System.Windows.Forms.ComboBox no-undo.
In a method I would like to re-fill this combobox.
First lclear it with:
comboBoxRoles:Items:Clear().
comboBoxRoles:ResetText().
In a for each tt-table a want to fill the combobox with add-first or add-last method.
I have tried several syntax but not the right one.
comboBoxRoles:Items:add-first(cDescription, tt-Table.GroupID).
comboBoxRoles::add-first(cDescription, tt-Table.GroupID).
Can someone help me.
The syntax help in PSDOE for these Microsoft Controls does not help much.
Where can you find syntax good syntax support for progress on those Microsoft Controls .
Thanks and regards,
Peter Wokke.
http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox_methods(v=vs.110).aspx
or here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.items(v=vs.110).aspx
or here:
Something like:
comboBoxRoles:Items:add(cDescription) .
Mike,
I can use the UltraControls as well.
Does it has has the option to add first and add last.
I would like to set the default user role at the first entry in the ComboBox.
Thanks and regards,
Peter
Most collections have an Add that typically adds at the end and an Insert that allows to insert at any position you like – including 0.
Thank you kindly Mike.