[C#]
je travaille sur une application a 4 panel...
mis l'un sur l'autre
des que l'utilisateur a fini avec le premier, un clik sur un bouton passe au second, puis au 3eme.
arrivé au 3eme, apres chaque click sur le panel, il passe automatiquement du 3 au 4, puis du 4 au 3, puis du 3 au 4 en alternance....
un bouton rejouer, devrait reinitialiser tout
probleme, je met tt les panels visible=false, sauf le tt premier
mais il n'apparait pas, tous sont a false
d'ou cela pourrait il venir??
tt a la fin, vous pouvez voir le test que je fais, et le message box n'apprait po, c incomprehensible
aidez moi svp!!!
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 private void nouvelle_partie_Click(object sender, System.EventArgs e) { int k=0; this.NomFichier=""; for (k=0;k<101;k++) { grid[k]=0; grid2[k]=0; } this.bouton_change.Visible=true; this.zone_jeu2.Visible=false; this.zone_essai.Visible=false; this.zone_essai2.Visible=false; this.zone_essai.Refresh(); this.zone_jeu.Visible=true; this.bateau1.Visible=true; this.bateau2.Visible=true; this.bateau3.Visible=true; this.bateau4.Visible=true; this.bateau5.Visible=true; bateau5.BackColor=Color.Gray; bateau4.BackColor=Color.Gray; bateau3.BackColor=Color.Gray; bateau2.BackColor=Color.Gray; bateau1.BackColor=Color.Gray; lEtat=1; this.sauver.Enabled=false; zz=2; pass=0; i=0; m=0; n=0; j=0; l=0; bombe=0; bat=0; num=0; efface=0; touche=0; touche2=0; var_bat=1; blok=0; this.statusBar.Text="le joueur 1 doit placer ses bateaux"; this.zone_jeu.Visible=true; if (zone_jeu.Visible==true)MessageBox.Show(this,"test");
Partager