I have a console application that runs an 'infinite' main loop. Now I want to add a Form to it to serve as GUI.
My problem is, that if I run the Form first, and then start the main loop, it never reaches the main loop until the Form is closed because it freezes the thread.
If I do it the other way around, it never reaches the part where I run the form of course.
I've tried some other things, like using Form.Show() and then enter the main loop. But even though the form appears and the main loop works, the form becomes unresponsive.
Does anybody know another way to do this? I've tried some multithreading, but I can't seem to make communication between the Console app and the Form.
Thanks in advance,