How do I close all open forms?
You can close all open forms in your application by calling the AppDesktop.CloseAllForms method.
For example, in C#:
AppDesktop.CloseAllForms();And in VB .NET:
AppDesktop.CloseAllForms()If you pass a true to CloseAllForms, it forces all forms to close even if the user has pending changes that haven't been saved yet (which causes the pending changes to be lost).
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 05/14/09
Comment or report problem with topic
