AuthorMessage
Meka][Meka
Unstopable
Posts: 700

regardless of cpu, here is some starting code for making a app fader, might come in handy for someone
c# version:
Code:
      Timer tmr = new Timer();
      bool bAdd = false;
      [STAThread]
      static void Main()
      {
         Application.Run(new Form1());
      }
      private void Form1_Load(object sender, System.EventArgs e)
      {
         tmr.Interval = 100;
         this.tmr.Tick += new System.EventHandler(this.tmr_Tick);
         tmr.Start();
      }
      private void tmr_Tick(Object sender, System.EventArgs e)
      {
         if (bAdd == false)
         {
            this.Opacity -= 0.01;
            if (this.Opacity < 0.01)
            {
               bAdd = true;
            }
         }
         else
         {
            this.Opacity += 0.01;
            if (this.Opacity > 0.99)
            {
               bAdd = false;
            }
         }
      }

-/Meka][Meka