Пример #1
0
        private void Command_Enter(object sender, System.EventArgs e)
        {
            // Stuffs to set the default winform button when the textbox gets focus
            Form parentForm = this.FindForm();

            if (parentForm != null)
            {
                if (parentForm.AcceptButton != this.Go)
                {
                    _cacheDefault           = parentForm.AcceptButton;
                    parentForm.AcceptButton = (IButtonControl)this.Go;
                }
            }
        }
 private void txtSkipPage_Enter(object sender, EventArgs e)
 {
     this.IB           = this.AcceptButton;
     this.AcceptButton = null;
 }
Пример #3
0
		private void Command_Enter(object sender, System.EventArgs e)
		{
			// Stuffs to set the default winform button when the textbox gets focus
			Form parentForm = this.FindForm();
			if(parentForm != null)
			{
				if(parentForm.AcceptButton  != this.Go)
				{
					_cacheDefault = parentForm.AcceptButton;
					parentForm.AcceptButton = (IButtonControl)this.Go;
				}

			}
		}
Пример #4
0
 private void txtSkipPage_Enter(object sender, EventArgs e)
 {
     this.IB = this.AcceptButton;
     this.AcceptButton = null;
 }