UtilFormsToggleFormSystray Method

Toggles the visibility of the specified Form to minimize it to system-tray or restore it from system-tray.

Definition

Namespace: DevCase.Core.Application.Forms
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ToggleFormSystray(
	Form form,
	NotifyIcon ntfy = null
)

Parameters

form  Form
The target Form to toofle its visibility.
ntfy  NotifyIcon  (Optional)
The NotifyIcon.

Exceptions

ArgumentNullException ntfy
ArgumentException The NotifyIcon doesn't have an icon.;ntfy

See Also