Bonjour, Je suis en trein de faire des tests sur PDA et j'ai un petit problème, je n'arrive pas à afficher une fenêtre par dessous une autre (ou actuliser cette fenêtre) sur le PDA. j'aimerai tout simplement afficher une fenêtre contenant des bouttons, et losque l'on clic sur l'un deux, une nouvelle fenêtre avec d'autres bouttons apparait. Malheureusement je n'arrive pas à obtenir la 2nd fenêtre. Mon code ressemble à sa : using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void InitializeComponent()
{
this.Label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// Label1
//
this.Label1.Location = new System.Drawing.Point(3, 0);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(100, 20);
this.Label1.Text = "Choisir services :";
this.Label1.ParentChanged += new System.EventHandler(this.label1_ParentChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(0, 23);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(240, 42);
this.button1.TabIndex = 1;
this.button1.Text = "Service 1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(0, 71);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(240, 42);
this.button2.TabIndex = 3;
this.button2.Text = "Service 2";
this.button2.Click += new System.EventHandler(this.button2_Click);
[...]//equivalent pour les autres bouttons
//
// Form1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(240, 294);
this.Controls.Add(this.button6);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.Label1);
this.Name = "Form1";
this.ResumeLayout(false);
}
private void Service1()
{
this.Label11 = new System.Windows.Forms.Label();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// Label1
//
this.Label11.Location = new System.Drawing.Point(3, 0);
this.Label11.Name = "Label11";
this.Label11.Size = new System.Drawing.Size(100, 20);
this.Label11.Text = "Choisir services :";
//
// button1
//
this.button11.Location = new System.Drawing.Point(0, 23);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(240, 42);
this.button11.TabIndex = 1;
this.button11.Text = "Service 1.1";
this.button11.Click += new System.EventHandler(this.button1_Click);
[...]//equivalent pour les autre bouttons
//
// Service1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(240, 294);
this.Controls.Add(this.button13);
this.Controls.Add(this.button12);
this.Controls.Add(this.button11);
this.Controls.Add(this.Label11);
this.Name = "Service1";
this.ResumeLayout(false);
}
private void button1_Click(object sender, EventArgs e)
{
Service1();
}
}