Exemplo n.º 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;
				}

			}
		}
Exemplo n.º 2
0
 private void txtSkipPage_Enter(object sender, EventArgs e)
 {
     this.IB = this.AcceptButton;
     this.AcceptButton = null;
 }