title: C# Need Help Changing a Label.Text - My Function/method won't change my Form Label Text
body: <p>I wanted to make a function to organize my code better but this is giving me a headache, My Problem is that I want to use my Public Function to change the label.Text whenever I call them from the Form but it's not working. How can I get this working and please be very basic. Thank You.</p>
  
  <p>Here's my Code:</p>
  
  <pre><code>namespace NoSleepHD
  {
      public partial class NoSleepHD : Form
      {
          public NoSleepHD()
          {
              InitializeComponent();
          }
  
          public void selectFolder(string driveLabel, string writePath)
          {
              FolderBrowserDialog Tree = new FolderBrowserDialog();
              Tree.RootFolder = Environment.SpecialFolder.MyComputer;
              Tree.ShowNewFolderButton = false;
              Tree.Description = "Please Select any Drive OR Folder on Your External hard Drive";
              Tree.ShowDialog();
              if (Tree.SelectedPath.Length != 0)
              {
                  driveLabel = Tree.SelectedPath.ToString();
                  Properties.Settings.Default.WritePath01 = driveLabel.ToString();
                  Properties.Settings.Default.Save();
              }
          }
  
          private void Button1_Click(object sender, EventArgs e)
          {
              selectFolder(Label11.Text, Properties.Settings.Default.WritePath01);
          }
  </code></pre>
  
  <p>but Label11.Text does not show any Text. Can someone  kind please help me out. Thank You.</p>