title: C# Topmost=true - restrict to application
body: <p>Our Application is displaying an "update-hint", if a new version is available. </p>
  
  <p>This Update-hint should be "topmost" within the application, but, if the application is minimized, or send to the background, the update-hint should vanish as well.. </p>
  
  <p>Just using </p>
  
  <pre><code>this.TopMost = true;
  </code></pre>
  
  <p>will overlay "ANY" application that is currently running...</p>
  
  <p>Is there a way to just "overlay" windows generated by the current application?</p>
  
  <hr>
  
  <p>Desired:
  application shows update-hint on top of every window, while application is in the foreground. Switching to another application will also send the update-hint to the background.</p>
  
  <hr>
  
  <p>Desired: Update-Hint overlays ANY window of the current application:</p>
  
  <p><a href="https://i.stack.imgur.com/3iEbe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3iEbe.png" alt="enter image description here"></a></p>
  
  <p>Not desired: Update-Hint overlays FOREIGN applications as well: </p>
  
  <p><a href="https://i.stack.imgur.com/S9Deo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S9Deo.png" alt="enter image description here"></a></p>