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).

  I found relevant post here:
http://www.mono-project.com/FAQ:_Gtk

(search for combobox section), however I don't have such method as Clear.
Another post here:
http://go-mono.com/forums/#nabble-to19903032%7Ca19927182

but Model also does not have such method as Clear.

  So, again -- how to clear combobox? Superficially it should easy task.
Thank you in advance for help.

Cheers,

(MonoDevelop 2.2 beta 2, openSUSE 11.1)
-- 
View this message in context: 
http://old.nabble.com/How-to-clear-combobox-%28easy-way-if-possible%29--tp26607127p26607127.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to