I would assume you didn't properly initialize your ConnectionCombo. Null references occur when you forget to initialize a reference, then try to access it as though you were referencing an actual object. Hope that helps.
Adrian V. On 7/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Send Gtk-sharp-list mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gtk-sharp-list digest..." > > > Today's Topics: > > 1. Gtk.OptionMenu obsolete ([EMAIL PROTECTED]) > 2. Gtk.Combo Entry.Activated pb ([EMAIL PROTECTED]) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 17 Jul 2005 13:22:19 +0200 > From: [EMAIL PROTECTED] > Subject: [Gtk-sharp-list] Gtk.OptionMenu obsolete > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I try to use a Gtk.OptionMenu but it is mark as obsolete. > Which widget should i use to avoid this warning. > > /francois > > ------------------------------------------------------------- > NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, > Toolbar... > Web/Wap : www.netcourrier.com > Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min) > Minitel: 3615 NETCOURRIER (0,16 € TTC/min) > > > > ------------------------------ > > Message: 2 > Date: Sun, 17 Jul 2005 16:30:05 +0200 > From: [EMAIL PROTECTED] > Subject: [Gtk-sharp-list] Gtk.Combo Entry.Activated pb > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello, > > I try to use a combox, and i a System.NullReferenceException when try to set > a event on the Combo.Entry.Activated. > > Does anyone got an idea? > > > ConnectionCombo = new Combo (); > > string[] pop = {"Foo", "Bar"}; > ConnectionCombo.PopdownStrings = pop; > > // ConnectionCombo.DisableActivate (); > // This Crash > ConnectionCombo.Entry.Activated += new EventHandler > (OnConnectionComboActivated); > > hbox.PackStart (XboxsConnectionCombo, false, false, 10); > > > Thanks, > > /Francois > > ------------------------------------------------------------- > NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, > Toolbar... > Web/Wap : www.netcourrier.com > Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min) > Minitel: 3615 NETCOURRIER (0,16 € TTC/min) > > > > ------------------------------ > > _______________________________________________ > Gtk-sharp-list mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > End of Gtk-sharp-list Digest, Vol 3, Issue 20 > ********************************************* > -- th3 m0nq
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
