title: logout the main form and show the login form
body: <p>i know this problem may sound stupid, but sad case, i've been searched online to get solution but still cannot get it correct. My problem now is = Logout button so to exit the main form, then show up the login form again. 
  The code below will NOT show the login form after i click the logout button, it straight away exit the whole application.</p>
  
  <pre><code>void logoutbtn_Click(object sender, EventArgs e)
      {
          CloseSockets(); 
          this.Close();
          serverlogin login = new serverlogin();
          login.Show();   
      }
  </code></pre>
  
  <p>So, i try to replace <code>this.Hide()</code> instead of <code>this.Close();</code>. But, something even dumb happen. Yes, the login page show after i click the logout button, but when i click the Cancel button at my login form, it didnt exit the whole application where it suppose to exit the whole application. i guess is because the main form is just hiding and not yet close??? Plus, when i try to login again, the login button is also, NOT functioning, cannot login to main page.</p>
  
  <p>i apologize upon my explanation and please tell me if it is very unclear.
  Please kindly help me. Thank you so much.</p>