Rex Sixx

Rex Sixx

  • NA
  • 2
  • 664

How to fill out a form with code in a C# web browser control

Apr 10 2017 9:18 PM

there anyway I can fill out a form with code in a C# web browser control when a timer has elapsed?

void time_Elapsed(object sender, System.Timers.ElapsedEventArgs e)         {     if (currentTime == foo) {               timer.Stop();             // I want to set             // webBrowser1.Document.GetElementById("NewQ_Gender").SetAttribute("value", "Male");         } } 

This webBrowser1 line only works inside document_completed event? What can i use for the time elapsed?

Thank you


Answers (1)