I am currently writing a little Web Service in C#. The only thing I want it to do when I start it, is displaying me a little GUI and instantly open a waiting TcpConnection for incoming requests, which then should be logged to the GUI and being handled ofc...
The problem is, that when I start the application I get no form, no console, nothing...
As usual, the form is being instantiated by Application.Run(new Form1());
My constructor looks like that, as I want the app to instantly open the TcpConnection...
public Form1()
{
InitializeComponent();
startTcpConn();
}
I have the feeling, that the waiting for a connection somehow blocks the displaying of my Form :(
I also tried to start the TcpConn with a timeout, which didn't help. The process runs in the background (as you can see in the task manager, but you cannot see the form. Not in Debug or Release mode or even starting it without VS...