Home Cooker Classes Others Rice CookerGX
Classes  >  window  >  TopMost(bool)
window class : TopMost(bool) setter

Description

Sets a value that indicates whether the window will always be displayed foreground of the desktop screen.

Syntax

windowInstance.TopMost = foreground

Arguments

ClassNameDescription
boolforegroundThe value that indicates whether the window will always be displayed foreground of the desktop screen.

Return value

None

Sample code

//anyWindow is a instance of window type.

anyWindow.TopMost = true;

Notes

It's a wrapper of the System.Windows.Forms.Form.TopMost.

Sets true if the window will always be displayed foreground. Otherwise, sets false.

Links for reference

Copyright © Rice All rights reserved.