1
Answer

Invoke Event for the Timer_Tick()

mmplay

mmplay

20y
4.3k
1
Hi, there I want to Invoke the UpdateListView() for timer_Tick How to do? Please Help me. Thanks. class TimeThread { private delegate void UpdateListViewDelegate(); private UpdateListViewDelegate updateListViewDelegate; private Timer timer = new Timer() public TimeThread(int interal) { updateListViewDelegate = new UpdateListViewDelegate(UpdateListView); this.timer.Tick += new System.EventHandler(this.Timer_Tick); } public void Run() { timer.Enable = ture; } private void Timer_Tick(object sender, System.EventArgs e) { ??????????????????????????????????? } private void UpdateListView() { ...... My UpdateListView Code Here } }
Answers (1)