Threading with ShowInTaskBar

So I'm trying to set ShowInTaskbar = true in my TimedEvent function but it stops the program and gives me an error about: Cross-thread operation not valid:

Control 'Form1' accessed from a thread other than the thread it was created on.

I don't know much/if anything about Threading. I tried googling but what I found didn't seem to help in my situation. Any help would be greatly appreciated!

Source Code:

by 17waldth via /r/csharp

Leave a Reply