__**A mettre à la place du InitializeComponent dans votre Form.Designer.cs ! TOUS LES EVENEMENTS SONT A FAIRE (Ex: au clic du bouton)**__ private void InitializeComponent(){ this.GrdPdt = new System.Windows.Forms.DataGridView(); this.BtnNbPdt = new System.Windows.Forms.Button(); this.BtnNbPn = new System.Windows.Forms.Button(); this.BtnNb5 = new System.Windows.Forms.Button(); this.BtnNbCat = new System.Windows.Forms.Button(); this.LblNbPdt = new System.Windows.Forms.Label(); this.LblNbPn = new System.Windows.Forms.Label(); this.LblNb5 = new System.Windows.Forms.Label(); this.LblNbCat = new System.Windows.Forms.Label(); this.BtnQuitter = new System.Windows.Forms.Button(); this.TxtCat = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.ChkPn = new System.Windows.Forms.CheckBox(); this.Rdo0 = new System.Windows.Forms.RadioButton(); this.Rdo2 = new System.Windows.Forms.RadioButton(); this.Rdo5 = new System.Windows.Forms.RadioButton(); this.TxtCode = new System.Windows.Forms.TextBox(); this.TxtDesi = new System.Windows.Forms.TextBox(); this.TxtPrix = new System.Windows.Forms.TextBox(); this.TxtCateg = new System.Windows.Forms.TextBox(); this.BtnAjouter = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.GrdPdt)).BeginInit(); this.SuspendLayout(); // // GrdPdt // this.GrdPdt.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.GrdPdt.Location = new System.Drawing.Point(51, 39); this.GrdPdt.Name = "GrdPdt"; this.GrdPdt.Size = new System.Drawing.Size(471, 150); this.GrdPdt.TabIndex = 0; // // BtnNbPdt // this.BtnNbPdt.Location = new System.Drawing.Point(51, 195); this.BtnNbPdt.Name = "BtnNbPdt"; this.BtnNbPdt.Size = new System.Drawing.Size(117, 23); this.BtnNbPdt.TabIndex = 1; this.BtnNbPdt.Text = "Nombre de produits"; this.BtnNbPdt.UseVisualStyleBackColor = true; // // BtnNbPn // this.BtnNbPn.Location = new System.Drawing.Point(51, 224); this.BtnNbPn.Name = "BtnNbPn"; this.BtnNbPn.Size = new System.Drawing.Size(193, 23); this.BtnNbPn.TabIndex = 2; this.BtnNbPn.Text = "Nombre de produits en production"; this.BtnNbPn.UseVisualStyleBackColor = true; // // BtnNb5 // this.BtnNb5.Location = new System.Drawing.Point(51, 253); this.BtnNb5.Name = "BtnNb5"; this.BtnNb5.Size = new System.Drawing.Size(210, 23); this.BtnNb5.TabIndex = 3; this.BtnNb5.Text = "Nombre de produits avec remise de 5%"; this.BtnNb5.UseVisualStyleBackColor = true; // // BtnNbCat // this.BtnNbCat.Location = new System.Drawing.Point(51, 282); this.BtnNbCat.Name = "BtnNbCat"; this.BtnNbCat.Size = new System.Drawing.Size(193, 23); this.BtnNbCat.TabIndex = 4; this.BtnNbCat.Text = "Nombre de produits dans catégorie"; this.BtnNbCat.UseVisualStyleBackColor = true; // // LblNbPdt // this.LblNbPdt.AutoSize = true; this.LblNbPdt.Location = new System.Drawing.Point(174, 200); this.LblNbPdt.Name = "LblNbPdt"; this.LblNbPdt.Size = new System.Drawing.Size(0, 13); this.LblNbPdt.TabIndex = 5; // // LblNbPn // this.LblNbPn.AutoSize = true; this.LblNbPn.Location = new System.Drawing.Point(250, 229); this.LblNbPn.Name = "LblNbPn"; this.LblNbPn.Size = new System.Drawing.Size(0, 13); this.LblNbPn.TabIndex = 6; // // LblNb5 // this.LblNb5.AutoSize = true; this.LblNb5.Location = new System.Drawing.Point(267, 258); this.LblNb5.Name = "LblNb5"; this.LblNb5.Size = new System.Drawing.Size(0, 13); this.LblNb5.TabIndex = 7; // // LblNbCat // this.LblNbCat.AutoSize = true; this.LblNbCat.Location = new System.Drawing.Point(250, 287); this.LblNbCat.Name = "LblNbCat"; this.LblNbCat.Size = new System.Drawing.Size(0, 13); this.LblNbCat.TabIndex = 8; // // BtnQuitter // this.BtnQuitter.Location = new System.Drawing.Point(447, 195); this.BtnQuitter.Name = "BtnQuitter"; this.BtnQuitter.Size = new System.Drawing.Size(75, 23); this.BtnQuitter.TabIndex = 9; this.BtnQuitter.Text = "Quitter"; this.BtnQuitter.UseVisualStyleBackColor = true; // // TxtCat // this.TxtCat.Location = new System.Drawing.Point(10, 284); this.TxtCat.Name = "TxtCat"; this.TxtCat.Size = new System.Drawing.Size(35, 20); this.TxtCat.TabIndex = 10; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(48, 333); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(35, 13); this.label1.TabIndex = 11; this.label1.Text = "Code:"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(48, 363); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(66, 13); this.label2.TabIndex = 12; this.label2.Text = "Désignation:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(48, 387); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(27, 13); this.label3.TabIndex = 13; this.label3.Text = "Prix:"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(48, 413); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(55, 13); this.label4.TabIndex = 14; this.label4.Text = "Catégorie:"; // // ChkPn // this.ChkPn.AutoSize = true; this.ChkPn.Location = new System.Drawing.Point(253, 329); this.ChkPn.Name = "ChkPn"; this.ChkPn.Size = new System.Drawing.Size(77, 17); this.ChkPn.TabIndex = 15; this.ChkPn.Text = "Production"; this.ChkPn.UseVisualStyleBackColor = true; // // Rdo0 // this.Rdo0.AutoSize = true; this.Rdo0.Location = new System.Drawing.Point(253, 359); this.Rdo0.Name = "Rdo0"; this.Rdo0.Size = new System.Drawing.Size(39, 17); this.Rdo0.TabIndex = 16; this.Rdo0.TabStop = true; this.Rdo0.Text = "0%"; this.Rdo0.UseVisualStyleBackColor = true; // // Rdo2 // this.Rdo2.AutoSize = true; this.Rdo2.Location = new System.Drawing.Point(253, 383); this.Rdo2.Name = "Rdo2"; this.Rdo2.Size = new System.Drawing.Size(39, 17); this.Rdo2.TabIndex = 17; this.Rdo2.TabStop = true; this.Rdo2.Text = "2%"; this.Rdo2.UseVisualStyleBackColor = true; // // Rdo5 // this.Rdo5.AutoSize = true; this.Rdo5.Location = new System.Drawing.Point(253, 406); this.Rdo5.Name = "Rdo5"; this.Rdo5.Size = new System.Drawing.Size(39, 17); this.Rdo5.TabIndex = 18; this.Rdo5.TabStop = true; this.Rdo5.Text = "5%"; this.Rdo5.UseVisualStyleBackColor = true; // // TxtCode // this.TxtCode.Location = new System.Drawing.Point(89, 330); this.TxtCode.Name = "TxtCode"; this.TxtCode.Size = new System.Drawing.Size(100, 20); this.TxtCode.TabIndex = 19; // // TxtDesi // this.TxtDesi.Location = new System.Drawing.Point(120, 360); this.TxtDesi.Name = "TxtDesi"; this.TxtDesi.Size = new System.Drawing.Size(100, 20); this.TxtDesi.TabIndex = 20; // // TxtPrix // this.TxtPrix.Location = new System.Drawing.Point(81, 384); this.TxtPrix.Name = "TxtPrix"; this.TxtPrix.Size = new System.Drawing.Size(100, 20); this.TxtPrix.TabIndex = 21; // // TxtCateg // this.TxtCateg.Location = new System.Drawing.Point(109, 410); this.TxtCateg.Name = "TxtCateg"; this.TxtCateg.Size = new System.Drawing.Size(100, 20); this.TxtCateg.TabIndex = 22; // // BtnAjouter // this.BtnAjouter.Location = new System.Drawing.Point(308, 406); this.BtnAjouter.Name = "BtnAjouter"; this.BtnAjouter.Size = new System.Drawing.Size(75, 23); this.BtnAjouter.TabIndex = 23; this.BtnAjouter.Text = "Ajouter"; this.BtnAjouter.UseVisualStyleBackColor = true; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(558, 435); this.Controls.Add(this.BtnAjouter); this.Controls.Add(this.TxtCateg); this.Controls.Add(this.TxtPrix); this.Controls.Add(this.TxtDesi); this.Controls.Add(this.TxtCode); this.Controls.Add(this.Rdo5); this.Controls.Add(this.Rdo2); this.Controls.Add(this.Rdo0); this.Controls.Add(this.ChkPn); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.TxtCat); this.Controls.Add(this.BtnQuitter); this.Controls.Add(this.LblNbCat); this.Controls.Add(this.LblNb5); this.Controls.Add(this.LblNbPn); this.Controls.Add(this.LblNbPdt); this.Controls.Add(this.BtnNbCat); this.Controls.Add(this.BtnNb5); this.Controls.Add(this.BtnNbPn); this.Controls.Add(this.BtnNbPdt); this.Controls.Add(this.GrdPdt); this.Name = "Form1"; this.Text = "Nombre de pro"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.GrdPdt)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } private System.Windows.Forms.DataGridView GrdPdt; private System.Windows.Forms.Button BtnNbPdt; private System.Windows.Forms.Button BtnNbPn; private System.Windows.Forms.Button BtnNb5; private System.Windows.Forms.Button BtnNbCat; private System.Windows.Forms.Label LblNbPdt; private System.Windows.Forms.Label LblNbPn; private System.Windows.Forms.Label LblNb5; private System.Windows.Forms.Label LblNbCat; private System.Windows.Forms.Button BtnQuitter; private System.Windows.Forms.TextBox TxtCat; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.CheckBox ChkPn; private System.Windows.Forms.RadioButton Rdo0; private System.Windows.Forms.RadioButton Rdo2; private System.Windows.Forms.RadioButton Rdo5; private System.Windows.Forms.TextBox TxtCode; private System.Windows.Forms.TextBox TxtDesi; private System.Windows.Forms.TextBox TxtPrix; private System.Windows.Forms.TextBox TxtCateg; private System.Windows.Forms.Button BtnAjouter;