Re: Problemas MessageBox.Show

"Juan C. Olivares" <[email protected]>
Newsgroups gmane.comp.gnome.mono.hispano
Message-ID <[email protected]>
2009/5/6 Rafael Rueda <[email protected]>

> Es extraño que a Juan C. Olivares le compile cuando usa this.Close().
>
> Uso Mono 2.4
> Monodevelop 2.0
>
> Todos son compilados desde fuentes y por tanto toman la ultima versión
> de WinForms
>
> Defino:
> using System;
> using Gtk;
> using System.Windows.Forms;


¿Por qué estás usando Gtk con Winforms? ¿No será que estás mezclando
toolkits verdad?

>
>
> El mié, 06-05-2009 a las 05:07 -0500, Rafael Rueda escribió:
> > Cuando se compila usando Monodevelop las siguientes instrucciones:.
> >
> > DialogResult resultado = MessageBox.Show("Hola C# Mundo!", "Hola Mundo",
> > MessageBoxButtons.OK, MessageBoxIcon.Warning);
> > if(resultado == DialogResult.OK)
> >       this.Close();
> >
> > Genera este error.
> >
> > Description=Type `MainWindow' does not contain a definition for `Close'
> > and no extension method `Close' of type `MainWindow' could be found (are
> > you missing a using directive or an assembly reference?)(CS1061)]
> >
> > Si solo se deja la siguiente instruccion:
> >
> > MessageBox.Show("Hola C# Mundo!", "Hola Mundo", MessageBoxButtons.OK,
> > MessageBoxIcon.Warning);
> >
> > El Botón "OK" no responde y la ventana queda permanentemente abierta
> >
> > Agradezco la ayuda que me puedan prestar.
> >
> > Rafael Rueda.
> >
>
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
> _______________________________________________
> Mono-hispano mailing list
> [email protected]
> https://listas.hispalinux.es/mailman/listinfo/mono-hispano
>



-- 
Atte,
Juan Cristóbal Olivares
חואנכרי

==============

Renovarse o morir: Mi PC de los sesenta tenía veinte mil militantes. Y mi PC
del siglo XXI tiene cuarenta gigabytes.

_______________________________________________
Mono-hispano mailing list
[email protected]
https://listas.hispalinux.es/mailman/listinfo/mono-hispano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.