[Gtk-sharp-list] Add data to ComboBox

John Luke john.luke@gmail.com
Wed, 15 Dec 2004 16:27:12 -0500


Hello,
If you are going to just be using text you should just use:
ComboBox.NewText ();
ComboBox.AppendText ();
ComboBox.InsertText ();
ComboBox.PrependText ();
ComboBox.RemoveText ();

I put an example in monodoc the other day...

On Wed, 2004-12-15 at 15:01 -0600, Sergio Duran wrote:
> How did you finally get it working? I'm having the same issue and I'm
> trying to get that to work, this is my sample:
> 
> ComboBox cb = new ComboBox();
> ListStore ls = new ListStore(typeof(string));
> cb.Model = ls;
> ls.AppendValues("Hello");
> ls.AppendValues("World");
> 
> The ComboBox is always empty, even though the ListStore contains the
> items (I checked)
> 
> 
> On Wed, 24 Nov 2004 01:34:58 -0500, Ryan <rthomp@sympatico.ca> wrote:
> > Thanks for the help everyone. I don't know if I did it right but I
> > figured most of it out finally using pygtk code as a sample. No I just
> > have an alignment problem but that's not important.
> > 
> > RT
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list