Client/Server duplex is still a mess in C#.
2 using System.Collections.Generic;
4 using System.Threading.Tasks;
5 using System.Windows.Forms;
7 namespace SharpDisplayClient
9 static public class Program
11 public static MainForm iMainForm;
14 /// The main entry point for the application.
17 static public void Main()
19 //Set high priority to our process to avoid lags when rendering to our screen
20 System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
22 Application.EnableVisualStyles();
23 Application.SetCompatibleTextRenderingDefault(false);
24 iMainForm = new MainForm();
25 Application.Run(iMainForm);