[Gtk-sharp-list] Howto get the entry selected from a ComboBox?!

Paulo Pires paulo.pires@vodafone.pt
Fri, 14 Jan 2005 15:06:55 +0000

Hi again

I've found a solution for my problem.

Gtk.TreeIter iter;
Gtk.ComboBox combo;
Gtk.ListStore store;

	//declared objects
	//populated combo with ListStore store as model
	//set first item as being the ActiveIter


	combo.GetActiveIter(out iter)
	Console.WriteLine((string)store.GetValue(iter,0));  //magic

Paulo Pires

Qui, 2005-01-13 =C3=A0s 14:24 +0000, Paulo Pires escreveu:
> Hi guys
> I've been searching Google and Monodoc, but I'm unable to find
> Gtk.ComboBox documentation. So my question is: How do i get the entry
> selected from a ComboBox?!
> Thanks in advance
> Paulo Pires
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list