public partial class Form1 : Form { private System.Threading.Timer timer; private System.Threading.TimerCallback stateCallback; private delegate void StateGetStartDelegete(); private void Form1_Load(object sender, EventArgs e) { stateCallback = new System.Threading.TimerCallback(WorkerStateGet); timer = new System.Threading.Timer(stateCallback, null, 15000, 15000); } private void StateGetStart() { if (InvokeRequired) { ★Invoke(new StateGetStartDelegete(StateGetStart)); return; } using (ServiceManeger sg = new ServiceManeger()) { this.dataGridView1[1,0].Value = sg.ServiceState; this.dataGridView1[1, 1].Value = sg.ListenerState; } } private void WorkerStateGet(object sender) { StateGetStart(); } }