Even though it receives far less attention than it’s more-malleable sibling, the non-client area of a dialog (the window frame, etc.) is highly configurable with Winforms 2.0. There are several guidelines that you should follow when creating new dialogs in order to ensure that your application’s non-client area meets the Windows Ux Guidelines.
By default, you should use the following settings for your window’s frame:
- MaximizeBox = false
- MinimizeBox = false
- ShowIcon = false – Dialog boxes must never have an icon in their top-left corner.
- ShowInTaskbar = false – Dialog boxes must never be shown in the task bar.
- FormBorderStyle = Sizable or FixedDialog – Make sure that dialog resizing works as expected when enabling this.
- SizeGripStyle = Show or Hide – Make sure that the resize handle is always visible when the FormBorderStyle is set to Sizable, or never shown when set to FixedDialog.
When naming your dialog, there are a few simple guidelines to follow:
- Dialog title is concise; describes intent succinctly.
- First letter of each word is capitalized.
- Never use periods, colons, semicolons, commas or other punctuation in a dialog title, except for proper names.
- “About MyCompany Software”
- “Select Resource”
- “Choose a file to open:” – Lacks proper capitalization, too wordy, and includes a colon.
- “OPEN FILE…” – Lacks proper capitalization, and includes three periods.