It is clear that the form does not appear. But how to remake? : It is clear that the form does not appear. But how to remake? Through the console, everything works.

     void Form1_Load(object sender, EventArgs e)
            {
                String host = Dns.GetHostName();//name kompa
                //ip pc
                IPAddress ip = Dns.GetHostByName(host).AddressList[0];
                const int port = 2222;
                label1.Text = host;
                label2.Text = "Сервер запущен на " + ip.ToString() + ":" + port.ToString();
                server.serversocket = new Socket(ip.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
                server.serversocket.Bind(new IPEndPoint(ip, port));
                server.serversocket.Listen(100);
    
                //ошибочка в цикле
                while (server.work)
                {
                    MessageBox.Show("dsff");
                    Socket handle = server.serversocket.Accept();
                    richTextBox1.AppendText("новое подключение" + handle.RemoteEndPoint.ToString());
                    new user(handle);
    
    
                }