j'ai le code standard pour Program.cs:; erreur donnant
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace cellap
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
- i créé un nouveau projet
- i a importé form1 existant en elle et a remplacé le form1 existant
quand je lance l'application, j'obtiens une erreur sur la ligne mentionnée:
Erreur 1 Le nom de type ou d'espace de nom 'Form1' est introuvable (une directive using ou une référence d'assembly est-elle manquante?) C: \ Users \ alexluvsd Anielle \ AppData \ Local \ Projects temporaires \ Cellap \ Program.cs 18 33 Cellap
ne sait quel est le problème?
Avez-vous fait une classe 'Form1'? –
où pourrais-je trouver cela? –