Bonjour à tous.
Je souhaite créer une fenêtre sur laquelle je vais déposer d'autre composants. Quand je compile j'ai le message d'erreur suivant :"Error 1 The name 'InitializeComponent' does not exist in the current context"
voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using System.Drawing; using System.Collections; using System.Windows; using System.Windows.Forms; using System.ComponentModel; using System.Data; namespace refelections { public class NotreFenetre : System.Windows.Forms.Form { private System.Windows.Forms.Button button1; private System.Windows.Forms.Label lababel1; private System.Windows.Forms.Label lababel2; private System.Windows.Forms.Label lababel3; private System.Windows.Forms.Label lababel4; private System.Windows.Forms.ComboBox cbo; private System.Windows.Forms.ListBox l3; private System.Windows.Forms.ListBox l2; private System.Windows.Forms.ListBox l1; private System.ComponentModel.Container components = null; public NotreFenetre() { //required for windows from Designer support InitializeComponent(); } }//fin de la classe Notrefenetre }
merci d'avance pour votre aide
Partager