On Click Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a Button is clicked.
protected: override void OnClick();
protected override void OnClick ();
override this.OnClick : unit -> unit
Protected Overrides Sub OnClick ()