Execute specified function every X seconds

后端 未结 4 1858
小鲜肉
小鲜肉 2020-11-27 15:02

I have a Windows Forms application written in C#. The following function checks whenever printer is online or not:

public void isonline()
{
    PrinterSettin         


        
4条回答
  •  不知归路
    2020-11-27 15:23

    You can do this easily by adding a Timer to your form (from the designer) and setting it's Tick-function to run your isonline-function.

提交回复
热议问题