[email protected] Nikola Lukic Nis Programski jezik c# 2008
Obrisi ceo sadrzaj form1 I iskopiraj dati kod!!!
using using using using using using using using
System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Linq; System.Text; System.Windows.Forms;
namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void timer1_Tick(object sender, EventArgs e) { if (nik.Value >= 100) { timer2.Enabled = true; timer1.Enabled = false; } else { nik.Value = nik.Value + 5; this.Opacity = (double)nik.Value / 100; } } private void timer2_Tick(object sender, EventArgs e) { if (nik.Value <= 0) { timer1.Enabled = true; timer2.Enabled = false; } else { nik.Value = nik.Value - 5; this.Opacity = (double)nik.Value / 100; } }
}
}