Пример #1
0
        } // end method SelectText
        #endregion Private Methods

        #region Control Events
        // have an initial operation on the status of the specified controls as well as the date and time
        private void FrmMainPage_Load(object sender, EventArgs e)
        {
            InitialiseControlStatus(); // call the specified method to initialise the status of the specified controls
            TxtInput.Select();
            LblDateAndTime.Text = DateTime.Now.ToString(); // display the start date and time, which is accurate to a second
        } // end method FrmMainPage_Load
Пример #2
0
        } // end method InitialiseControlStatus 

        // select all in the specified text box
        private void SelectText()
        {
            TxtInput.Select();
            TxtInput.SelectAll();
        } // end method SelectText