Beispiel #1
0
        /// <summary>
        /// Raises the GotFocus event.
        /// </summary>
        /// <param name="e">An EventArgs that contains the event data.</param>
        protected override void OnGotFocus(EventArgs e)
        {
            // Cannot process a message for a disposed control
            if (!IsDisposed && !Disposing)
            {
                // Do we have a manager for processing source messages?
                if (ViewManager != null)
                {
                    ViewManager.GotFocus();
                }
            }

            // Let base class fire standard event
            base.OnGotFocus(e);
        }