0

I am having an issue using an external component which can be found here: https://www.codeproject.com/Articles/27738/NET-component-that-simplifies-tracking-of-system

The problem I am having is that I want to talk to the main thread (frmMain), but when this takes place SystemIdleTimer1_OnEnterIdleState wants to create a new form because of SystemIdleTimer1 is a different thread.

Private Sub SystemIdleTimer1_OnEnterIdleState(ByVal sender As System.Object, ByVal e As EdinDazdarevic.IdleEventArgs) Handles SystemIdleTimer1.OnEnterIdleState  
    frmMain.stopActiveTimer()

    MessageBox.Show("Entered idle state")
End Sub

How can I call data in the main thread in the current scenario?

There are some similar questions on StackOverflow, but I am struggling to tie everything together:

Vlad Vladimir Hercules
  • 1,781
  • 2
  • 20
  • 37

0 Answers0