Upon googling it seem to be related to using multiple threads but oddly I am not creating any thread at all and yet I am encountering the above error. This has been baffling me no end and I am running out of ideas as to how to solve this problem. Related thread is here.

I have already even tried using CheckForIllegalCrossThreadCalls = False just to try fixing it but to no avail.
Code:
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
I really hope someone could help me out on this.