johnnous
Messages postés100Date d'inscriptionjeudi 3 mars 2005StatutMembreDernière intervention24 mai 2013
-
10 juil. 2009 à 13:03
cs_Bidou
Messages postés5487Date d'inscriptiondimanche 4 août 2002StatutMembreDernière intervention20 juin 2013
-
11 juil. 2009 à 18:06
bonjour
j'ai un soucis je souhaite faire un bouton clignotant
donc j'ai ajouter la propriete Twinkling qui lorsqu'elle passe a true m'active mon timer timer_Clignotement
mais je ne passe jamais dans la routine timer_Clignotement_Tick
quelqu'un peut m'aider j'ai oublier quoi ?
merci
JL
namespace XCtrls
{
public class BitmapButton : System.Windows.Forms.Button
{
public System.Windows.Forms.Timer timer_Clignotement = new Timer() ;
private bool _Twinkling = false ;
[Browsable(true),
CategoryAttribute("Appearance"),
Description("Twinkling button"),
System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)
]
public bool Twinkling
{
get { return _Twinkling; }
set { _Twinkling = value;
this.timer_Clignotement.Enabled = _Twinkling;
this.timer_Clignotement.Interval = 100;
}
}
WishhhMaster
Messages postés327Date d'inscriptionmardi 17 février 2004StatutMembreDernière intervention10 avril 20108 11 juil. 2009 à 13:48
Salut,
truc tout con: tu t'es bien abonné à l'évènement Tick de ton timer quelque part?
i.e. this.timer_Clignotement.Tick+=new EventHandler(timer_Clignotement_Tick);
johnnous
Messages postés100Date d'inscriptionjeudi 3 mars 2005StatutMembreDernière intervention24 mai 2013 11 juil. 2009 à 08:26
bonjour
j'ai mis start mais ca ne marche toujours pas
public bool TwinklingActive
{
get { return _TwinklingActive; }
set { _TwinklingActive = value;
this.timer_Clignotement.Enabled = _TwinklingActive;
if (_TwinklingActive)
{
this.timer_Clignotement.Interval = 100;
this.timer_Clignotement.Start();
}