[Gtk-sharp-list] add element list to combo
Everaldo Canuto
everaldo_canuto@yahoo.com.br
Wed, 6 Oct 2004 09:08:25 -0300 (ART)
Hi Pablexxx,
Try to do this:
[Widget] Gtk.Combo cmbURL;
ArrayList list = new ArrayList( new string[] {"one",
"two", "three"} );
cmbURL.PopdownStrings = (string[])
list.ToArray(typeof(string));
If you need to add more elements:
list.Add("four");
cmbURL.PopdownStrings = (string[])
list.ToArray(typeof(string));
Everaldo.
--- Pablexxx <csp@castorinop.com.ar> escreveu:
> I am inexperienced in c #, gtk and others. as it
> shows to the example
> of gtk.combo for Seth the content of the list:
> [Widget] Gtk.Combo cmbURL;
> string[] list = new string[] {"one", "two",
> "three"};
> cmbURL.PopdownStrings=list;
>
> now, as I can add a new item to the list without
> losing the content of
> the same one
>
> Tanks
>
> Pablexxx
>
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/