[Mono-devel-list] glade-sharp and GnomeAbout Widget

Miguel de Icaza miguel at ximian.com
Fri Nov 26 19:14:27 EST 2004


> whoops, yes you're right since the widget name is 'about1'
> i replaced with:
> About about = (About)gxml["about1"];
> but when i launch the app i get the following:
> Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type.

That means that the type of `about1' is not Gnome.About, its something

Try doing:

	Console.WriteLine ("Type is: " + gxml ["about1"].GetType ());

Miguel de Icaza <miguel at ximian.com>

More information about the Mono-devel-list mailing list