gbourgeois0019
Messages postés152Date d'inscriptionlundi 3 avril 2006StatutMembreDernière intervention 2 juin 2008
-
14 mai 2007 à 19:04
cs_coq
Messages postés6350Date d'inscriptionsamedi 1 juin 2002StatutMembreDernière intervention 2 août 2014
-
18 mai 2007 à 17:27
Bonjour,
voila mon problème : J'ai un première Form1 dans la quelle j'ai un bouton qui contient le code suivant :
m_Form2 = new Form2(this.m_Access);
this.ShowInTaskbar = false;
this.Hide();
m_Menu.ShowDialog();
this.Show();
this.ShowInTaskbar = true;
Dans cette Form2, j'ai un bouton qui contient le code suivant :
m_Form3 = new Form3();
this.ShowInTaskbar = false;
this.Hide();
m_Menu.ShowDialog();
this.Show();
this.ShowInTaskbar = true;
Le problème c'est que quand je referme ma Form3, je reviens directement à la form1. La Form2 se ferme toute seule ...
Si quelqu'un sait pourquoi sa peut faire sa je vous en remerci d'avance !!
Guillaume.
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !
gbourgeois0019
Messages postés152Date d'inscriptionlundi 3 avril 2006StatutMembreDernière intervention 2 juin 20081 14 mai 2007 à 20:29
Effectivement sa aurais du etre Form2 et Form3 ... J,ai copier collé et voulu mettre sa plus clair mais j'ai oublier de changer ces deux la !!
Et oui si j'enlève le Hide ca marche #1, sauf que jveux pas enlever le hide !!
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !
gbourgeois0019
Messages postés152Date d'inscriptionlundi 3 avril 2006StatutMembreDernière intervention 2 juin 20081 14 mai 2007 à 21:03
Non ca ne change malheureusement rien ...
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !
Vous n’avez pas trouvé la réponse que vous recherchez ?
gbourgeois0019
Messages postés152Date d'inscriptionlundi 3 avril 2006StatutMembreDernière intervention 2 juin 20081 14 mai 2007 à 21:25
L'opacité ca ne marche pas non plus mais j'ai trouvé un moyen ... tout dependant de la valeur que retourne le showDialog je le rapelle s'il faut ...
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !
cs_coq
Messages postés6350Date d'inscriptionsamedi 1 juin 2002StatutMembreDernière intervention 2 août 2014101 18 mai 2007 à 17:27
Salut,
La méthode Hide ne fait qu'affecter false à la propriété Visible.
Sinon ton problème doit être causé par les affectations de ShowInTaskbar, qui ne doivent pas servir à grand chose en plus.