Beispiel #1
0
 private void InnerTextBox_CheckToClear(object sender, EventArgs e)
 {
     if (InnerTextBox.Text.Length == 0 || InnerTextBox.Text.ToUpper() == PlaceHolder.ToUpper())
     {
         InnerTextBox.Text      = PlaceHolder;
         InnerTextBox.ForeColor = PlaceholderColor;
         m_text = "";
     }
 }
Beispiel #2
0
 private void InnerTextBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (InnerTextBox.Text.ToUpper() == PlaceHolder.ToUpper())
     {
         m_text = "";
         InnerTextBox.ForeColor = PlaceholderColor;
     }
     else
     {
         m_text = InnerTextBox.Text;
         InnerTextBox.ForeColor = ForeColor;
     }
 }