BunifuCaptionButtonin your toolbox and simply drag it to your form as shown below then customize it to your desired look and feel using properties that will be elaborated on later in this article:
Styleprop is set to Flat. By default, the property is set to true.
roundnessof an edge will depend on the value set on the
Abort, Retry, Ignore, Yes, No, TryAgain and Continue
Minimize- this value renders a minus icon on the caption button. You can code the click event of the button to minimize the Windows Form to the taskbar when the button is clicked as shown below:
Maximize- this value renders a maximize icon on the caption button. Code its click event to enlarge the window to occupy the entire screen or restore a form when the button is clicked as shown below:
Close- this value renders a close (X) icon on the caption button. You will code its click event which will close the Windows Form when clicked. Here's the code that closes the form:
Help- this value renders a help icon on the caption button. You will code its click event which can open a process that can open a link to a browser or other window with your help resources. Here's a sample event code for the caption button: