[Gtk-sharp-list] How I make a message dialog?

Bertrand Lorentz bertrand.lorentz at gmail.com
Thu Aug 23 16:39:18 UTC 2012


On Mon, Aug 13, 2012 at 12:41 PM, RedHatIsBetter <edu.rm.85 at gmail.com> wrote:
> Hi, I have problema with MessageDialog, I can't run any window message in a
> little application I develop.
>
> This is the code of the application (MainWindow.cs).
> ------------------------------------------------

[snip]

>         protected void OnCmbAnadirClicked (object sender, System.EventArgs e)
>         {
>                 throw new System.NotImplementedException ();

[snip]

> This is the error shows me the application when I click on the bottom.
> --------------------------------------------
> Marshaling clicked signal
> Exception in Gtk# callback delegate
>   Note: Applications can use GLib.ExceptionManager.UnhandledException to
> handle the exception.
> System.Reflection.TargetInvocationException: Exception has been thrown by
> the target of an invocation. ---> System.NotImplementedException: The
> requested feature is not implemented.

I believe this exception is caused by the fact that your
OnCmbAnadirClicked method throws it... You probably want to remove
that line (see above).

For documentation about the MessageDialog class, see there:
http://docs.go-mono.com/?link=T:Gtk.MessageDialog

-- 
Bertrand Lorentz


More information about the Gtk-sharp-list mailing list