title: How can i fix the 'myLogin' does not exist in the current content?
body: <p>I have been doing a exerscise from my c# course and i don't get it to work, here is the actual assignment:</p>
  
  <p>Create a user control named "LoginPasswordUserControl". The "LoginPasswordUserControl"
  contains a label (loginLabel) that displays string "Login: ", a textbox (loginTextBox) where 
  the user inputs a login name, a label (passwordLabel) that displays the string "Password:", 
  and finally, a Textbox (passwordTextBox) where a user inputs a password (do not forget to set
  property Passwordchar to "*" in the TextBox's Properties window). </p>
  
  <p>LoginPasswordUserControl must provide Public read-only properties 
  Login and Password that allow an application to retrieve the user input 
  from loginTextBox and passwordTextBox. </p>
  
  <p>Here is the LoginPasswordUserControl code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Drawing;
  using System.Data;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  namespace LoginApp
  {
      public partial class LoginPasswordUserControl : UserControl
      {
          public LoginPasswordUserControl()
          {
              InitializeComponent();
          }
  
          public string Login
          {
              get
              {
                  return loginTextBox.Text;
              }
          }
          public string Password
          {
              get
              {
                  return passwordTextBox.Text;
              }
          }
      }
   }
  </code></pre>
  
  <p>And here is the code for the application wich is where im getting the error message:
  The name 'myLogin' does not exist in the current content</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  namespace UserControlTest
  {
  public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
      }
  
      private void OK_btn_Click(object sender, EventArgs e)
      {
  
          if (myLogin.Login != "" &amp;&amp; myLogin.Password != "")
  
          {
  
              displayLabel.Text = "The information entered is:";
  
              loginLabel.Text =
              "Login: " + myLogin.Login;
  
              passwordLabel.Text =
              "Password: " + myLogin.Password;
  
          } 
          else
  
              displayLabel.Text = "Enter information above";
          }
      }
  }
  </code></pre>