Advertisement
Guest User

Topmost

a guest
Jul 20th, 2019
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. public delegate void TopMostOrderDelegate();
  2.  
  3. public Program() {
  4.     new Thread(() =>
  5.     {
  6.         while (true)
  7.         {
  8.             try
  9.             {
  10.                 while (true)
  11.                 {
  12.                     this.Invoke(new TopMostOrderDelegate(() => {
  13.                         this.TopMost = true;
  14.                     }));
  15.                     Thread.Sleep(1);
  16.                 }
  17.             } catch (Exception ex) { }
  18.         }
  19.     }).Start();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement