[Gtk-sharp-list] How to clear combobox (easy way if possible)?

Adam Tauno Williams awilliam at whitemice.org
Thu Dec 10 09:16:10 EST 2009

On Sun, 2009-12-06 at 06:07 -0800, macias wrote:
> Hello,
>   I populate combobox items at runtime using AppendText method. I also would
> like to to clear combobox (remove all entries added previously). However I
> cannot find anything appropriate. I also cannot find out how many entries
> there are -- if I could I would use RemoveText method (currently I simply
> run for loop with such big limit that I know in advance there won't be so
> many items, I know, very ugly workaround and buggy).

Several of the Gtk/Gtk# widgets aren't very elegant for simple use.
Have you looked at Holly Gtk# Widgets?  That assembly provides a very
simple HSimpleComboBox, which like most of the Holly widgets, is a
pleasure to use.


OpenGroupware developer: awilliam at whitemice.org
OpenGroupare & Cyrus IMAPd documenation @

More information about the Gtk-sharp-list mailing list