Re: Problemas al usar POint

Jose Pino <[email protected]>
Newsgroups gmane.comp.gnome.mono.hispano
Message-ID <[email protected]>
El jue, 22-05-2008 a las 18:35 -0300, Tany Villalba escribió:
> Hola estoy tratando de usar una variable Point pero al compilar me da
> un error. El codigo es simple y en las cabecera del archivo uso
> 
> using System; 
> using System.Drawing; 
> using System.IO;
> 
> Point kkk=new Point(2,2);
> 
> Pero me da este error en la linea donde declaro el POint
> 
>  The type or namespace name `Point' could not be found. Are you
> missing a using directive or an assembly reference?

Hola, al menos de esta forma funciona...

using System;
using System.Drawing;

public class tmp
{
        public static void Main()
        {
                System.Drawing.Point p =  new System.Drawing.Point(8,
8);
                Console.WriteLine(p.ToString());
        }
}

//Para Compilar
//gmcs -r:System,System.Drawing tmp.cs

Saludos
> 
> Cual es el problema, o me falta algun using:
> 
> 
> Saludos
> 
> 
> ----------------------
> Tany Villalba Villaba.
> Cusco - Peru
> 
> 
> ______________________________________________________________________
> 
> Yahoo! Encuentros
> Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo!
> Encuentros.
> Visitá http://yahoo.cupidovirtual.com/servlet/NewRegistration
> _______________________________________________
> 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.