private void ThreadTask() { while (true) { this.Invoke(new MethodInvoker(delegate() { DataGetir(); })); Thread.Sleep(5000); } }