Getting a time control working using backgroundworker?

The Timer must be started on the UI thread, or it will fail silent. Also there's no need to set the enabled property yourself - when you call the Start method it will change to true.

The Timer must be started on the UI thread, or it will fail silent. Also there's no need to set the enabled property yourself - when you call the Start method it will change to true. An alternative could be: public partial class Form1 : Form { public Form1() { InitializeComponent(); var t = new Timer(); t.

Tick += new EventHandler(GrabData); t. Interval = 5000; t.Start(); } void GrabData(object sender, EventArgs e) { var data = Task.Factory. StartNew(() => { // get and return data }); // do something with the data.

Result } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions