[Gtk-sharp-list] WIN32+Mono-0.29+GTK#-0.14+Combo+Entry
Jonathan Kessler
Jwkpiano1@comcast.net
Sun, 11 Jan 2004 10:57:31 -0600
Watch your uppercase and lowercase. You declared combo1, not Combo1.
That is probably what is causing the Null Ref.
Jon Kessler
On Fri, 2004-01-09 at 19:15, felipe maya wrote:
> The Entry element of Combo don't has a correct functionality on WIN32
> yet, with the execution program produce a NULL REFERENCE EXCEPTION.
>
>
> using Gtk;
> using GtkSharp;
> using System;
>
>
> public class main:Gtk.Window{
> public static void Main (string [] args){
> Application.Init ();
> main app = new main();
> Application.Run ();
> }
> public main() : base("COMBO"){
> Combo combo1 = new Combo();
> Combo1.Entry.Text = "HOLA MUNDO"; ///HERE CAUSE A NULL REFERENCE
> EXCEPTION
> this.Add(combo1);
> this.ShowAll();
> }
> }
>
> What is WRONG...
>
> ______________________________________________________________________
> Consigue tu correo GRATIS en Manizales.com,
> dale vida a tus mensajes con más de 300 motivos grficos.
> Busca el portal de tu ciudad en http://www.enredese.net
> _______________________________________________ Gtk-sharp-list
> maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list