title: How do I use HtmlDocument in CF3.5
body: <p>I'm working on a Device that runs on windows CE and i need to automate a login process. I was able to achieve this in a Forms Application using the code below but it doesn't seem like I can use the same process on the smart device. Is there a way to do the same thing while working in CE?</p>
  
  <pre><code>        string butts = webBrowser1.Url.AbsoluteUri;
          HtmlDocument doc = webBrowser1.Document;
          HtmlElement userValue = doc.GetElementById("username");
          userValue.SetAttribute("value", "user");
          HtmlElement passValue = doc.GetElementById("password");
          passValue.SetAttribute("value", "pass");
          HtmlElement subButton = doc.GetElementById("submit");
          subButton.InvokeMember("click");
  </code></pre>