message box en C# (en mono)

/* Autor: Fer Carraro */ using System; public class Hola{ public static void Main(string[] args){ try{ System.Windows.Forms.MessageBox.Show("Hola, estoy usando windows Forms"); } catch(Exception ex){ Console.Error.WriteLine("Error: ["+ex.Message+"]"); Environment.Exit(0); } } } /* Compilar: gmcs Hola.cs -r:System.Drawing.dll -r:System.Windows.Forms.dll Ejecutar: mono Hola.exe */

1 Response

Compilar: mcs Hola.cs -r:System.Drawing.dll -r:System.Windows.Forms.dll
Ejecutar: mono Hola.exe

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.