title: How to make a windows form to come front in windows application done in c#?
body: <p>I have done a global mouse event in my windows application. When i click  the center button of my mouse, i want to make a particular form topmost...</p>
  
  <p>There are some applications which runs in the full screen mode, so i need to do this, in order to make my form visible to the users, because this is the only way to view it. Since Alt + Tab is disabled. This is a Kiosk application.</p>
  
  <p>I tried using Topmost = true for that particular form and
  I tried using below code...But no use. I am not getting my form in front.</p>
  
  <pre><code>  [DllImport("User32.dll")]
    public static extern Int32 SetForegroundWindow(int hWnd);     
  
    [DllImport("user32.dll")]
    public static extern int FindWindow(string lpClassName, string  lpWindowName);                        
  
       private void BringToFront(string className,string CaptionName)
      {
          SetForegroundWindow(FindWindow(className,CaptionName));
      }
  </code></pre>
  
  <p>The global hotkey which has to trigger this form to bring front is working perfectly.</p>
  
  <p>How to make my form come front ??? Thanks.</p>