Hello,
The following assistance only applies to Windows Forms project builds.
1. Drag a Button object onto your Form.
2. Make visual changes that your prefer, color, text font, etc.
3. Change Button.Text to something relative to its function.
4. Subscribe your Button to Event Mouse_Click handler.
5. Use the following code, inside the Button event handler, brackets;
private void button1_MouseClick( object sender, MouseEventArgs e )
{
this.TopMost ^= true;
}
6. Compile and execute the project to see if works as expected.
The code that I have provided, should on every Mouse Click event,
toggle the state of the Forms property TopMost. However, there
are some objects that will override TopMost such as Dialogs.
Even when Dialog has lost Focus, can remain TopMost, until closed.
Hope this helps :)