title: Change User Agent WebBrowser Object C#
body: <p>I know there are a lot of topics containing the same subject as this one, but non of those topic could help me with my problem.</p>
  
  <p>I'm making a simple iPhone Webbrowser in C#. The only thing it should do, is acting like it's an iPhone. This is possible when you change the User Agent String.</p>
  
  <p>I tried in in the WebBrowser.Navigate event, in the 4th argument you can put a header containing a User Agent String. But it's working just one time, after you click something in the WebBrowser it changes the user string to default. So this is not a useable method for me.</p>
  
  <p>Then i tried an ExtendedWebBrowser control that i found on the internet. When you youse that control you can set the User Agent in the properties windows, but this doesn't work at all for me.</p>
  
  <p>So at last i tried to use the urlmon.dll to set the User Agent, but everywere when they talk about it, they talk about restarting the process. I can't find any process working with that DLL so i can't get is to work either. And if it would work, it's not a possibility to restart it everytime i want to use the application.</p>
  
  <p>Can someone help me to get a answer to my question, i'm struggling with for a day now?</p>
  
  <p>Thank you in advance people!</p>