[Gtk-sharp-list] Notebook question

Miguel 26031@t-link.de
Sun, 06 Jun 2004 23:58:59 +0200


On Sun, 2004-06-06 at 23:37, John Luke wrote:
> On Sun, 2004-06-06 at 23:24 +0200, Miguel wrote:
> > Hi,
> > 
> > is it possible to get a notebook page in the foreground by calling a
> > method, instead of clicking the Register?
> > 
> > 
> 
> nb.CurrentPage = pageNum; 

If I do that, I get the following Exception:
Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0x00027> MoreWidgets_Glade:on_button1_clicked
(object,System.EventArgs)

nb is instanciated from a glade file.

Is there anything more to do?