STATheadAttribute

09/03/2007 - 11:35 por wiwowowi | Informe spam
No me deja abrir un file browser, me sale un error referido a esto.

Me pone "Asegrese q la funcion Main tiene marcado STATheardAttribute".

Como puedo solucionarlo.

Gracias.

Preguntas similare

Leer las respuestas

#1 Octavio Hernandez
09/03/2007 - 12:05 | Informe spam
Pues eso, marcar el método Main() con el atributo STAThread, así:

[STAThread]

static void Main()

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

Application.Run(new Form1());

}


Slds - Octavio



"wiwowowi" escribió en el mensaje
news:
No me deja abrir un file browser, me sale un error referido a esto.

Me pone "Asegrese q la funcion Main tiene marcado STATheardAttribute".

Como puedo solucionarlo.

Gracias.
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida