title: change label text in usercontrol at run time
body: <p>hello 
  i m new to c# and im working on a project,in which i made a usercontrol1 as 
  *<em>label textbox datepicker</em>*now i wnt to change the label text,i m trying this code but it is not working</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  
  namespace library_system
  {
      public partial class UserControl1 : UserControl
      {
          public UserControl1()
          {
              InitializeComponent();
          }
  
         // private string DateLabel
  
          public string DateLabel
          {
              **get { return DateLabel.Text; }//error when i write dateLabel.Text
              set
              {
                  DateLabel.Text= value;//error datelabel.Text
              }**
          }
  </code></pre>
  
  <p>i m using this code in usercontrol for is it right to do this way??</p>
  
  <p>and in the main form i m writing code as
   <code>userControl11.DateLabel="From Date</code>";//on for  load event??Is this Right
  Thanks in advance!!</p>