CanClose Method (DesignerControl)
Returns if it is save to close the form and dispose the control. Might return false if there are unsaved changes and the user clicks on "Cancel" during the save query.
Platforms: Windows 10, Windows 11, Windows Server 2016 - 2025
.NET: .NET Framework 4.8, .NET 10, .NET 11