//добавляем конец сессии при закрытии формы private void pharm_FormClosed(object sender, FormClosedEventArgs e) { WebRequest req = WebRequest.Create(String.Format("http://localhost/exit.php?id_session={0}", id_ses)); WebResponse resp = req.GetResponse(); enter en = new enter(); en.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new enter()); enter form1 = new enter(); form1.Show(); Application.Run(); }