/*------ TextBox 『txtInput』
         *-『txtInput_Enter』:輸入狀態
         *-『txtInput_Leave』:提示狀態
         *-『txtInput_KeyPress』:限制輸入
         * -------------------------------------*/

        /* txtInput 輸入狀態 */
        private void txtInput_Enter(object sender, EventArgs e)
        {
            OftenUseColor.SetInputTextStatus(txtInput);
        }
Esempio n. 2
0
        /*--- 輸入狀態 ---*/
        private void txtInput_Enter(object sender, EventArgs e)
        {
            inWarningMsg.Visible = false; //隱藏『必須輸入內容,才能做查詢』

            OftenUseColor.SetInputTextStatus(txtInput);
        }
 /*------ TextBox『txtInput』
  *-『txtInput_Enter』:輸入時的文字顏色
  *-『txtInput_KeyPress』:限制輸入
  *-------------------------------------------*/
 /*--- 輸入時的文字顏色 ---*/
 private void txtInput_Enter(object sender, EventArgs e)
 {
     msgNotNull.Visible = false; //隱藏『必須輸入』
     OftenUseColor.SetInputTextStatus(txtInput);
 }
 /*--- 輸入狀態 ---*/
 private void txtInContent_Enter(object sender, EventArgs e)
 {
     inWarningMsg.Visible = false; //隱藏錯誤訊息
     OftenUseColor.SetInputTextStatus(txtInContent);
 }