[Gtk-sharp-list] Add data to ComboBox
Ben Motmans
Ben Motmans <ben.motmans@gmail.com>
Mon, 22 Nov 2004 19:55:45 +0100
> You can do this in Gtk# for Windows 1.0.2
>
> Gtk.Widget w = gxml.GetWidget("combo1");
> combo1 = w as Gtk.Combo;
> string[] list = new string[] {"English", "Maths", "Science"};
> combo1.PopdownStrings = list;
this would be a Gtk.Combo, it isn't the same widget as a Gtk.ComboBox
Gtk.Combo is depricated
to fill a ComboBox, have a look at some TreeView demo's
it is done in the same way