[Mono-devel-list] glade-sharp and GnomeAbout Widget
belch at linux.it
Fri Nov 26 14:11:25 EST 2004
|> i have a question related to Glade-Sharp
|> from a .glade, how do i extract a "GnomeAbout" widget?
|> I tried with:
|> Gnome.About about = (Gnome.About)gxml["about"];
|> . but looks like it doesn't work, since the object about
|> is set to null.
|If the value is set to null, it means that the Glade file does not
|contain a widget named `about'.
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.
More information about the Mono-devel-list