title: Need to refresh chrome browser using C#
body: <p>In my windows application on button click, I need to refresh all opened Chrome browser instances or at least the Active tab on my machine. </p>
  
  <p>My code below:</p>
  
  <pre><code> [DllImport("user32.dll")]
   static extern bool PostMessage(IntPtr hWnd, UInt32 Msg, int wParam, int lParam);
   private void btnGetBrowserProcess_Click(object sender, EventArgs e)
      {
         const UInt32 WM_KEYDOWN = 0x0100;
         const int VK_F5 = 0x74;
  
          Process[] procsChrome = Process.GetProcessesByName("chrome");
          foreach (Process chrome in procsChrome)
          {
              if (chrome.MainWindowHandle != IntPtr.Zero)
              {
                 PostMessage(chrome.MainWindowHandle, WM_KEYDOWN, VK_F5, 0);
              }
          }
  }
  </code></pre>
  
  <p>This works fine with IE and Mozilla but doesn't work with Chrome</p>