System.Windows.Forms.Form.CheckAcceptButton C# (CSharp) Method

CheckAcceptButton() private method

private CheckAcceptButton ( ) : void
return void
		internal override void CheckAcceptButton ()
		{
			if (accept_button != null) {
				Button a_button = accept_button as Button;

				if (ActiveControl == a_button)
					return;
				
				// If the accept_button isn't a Button, we don't need to do
				// the rest of this.
				if (a_button == null)
					return;
					
				if (ActiveControl is Button)
					a_button.paint_as_acceptbutton = false;
				else
					a_button.paint_as_acceptbutton = true;
					
				a_button.Invalidate ();
			}
		}
Form