المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Analogclock and timer



C# Programming
05-12-2009, 09:52 PM
I don't know how to put timer in form that clock would be moving..

public void Start()
{
timer1.Enabled = true;
this.*******();

}

public void Stop()
{
timer1.Enabled = false;
}

private void timer1_Tick_1(object sender, EventArgs e)
{
this.dateTime = DateTime.Now;
this.*******();
}


public Form1()
{
InitializeComponent();

}



private void Form1_Load(object sender, EventArgs e)
{
dateTime = DateTime.Now;
this.analog_size(sender, e);



}


With this code i get current time and clock pointers are also showing the correct time..but they are not moving..what should i do to make them move??

Thanks