Trouble with HtmlElement.Invokemember

private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { //State engine is to be implemented webBrowser.Document.GetElementById("someId").InnerText = "text to paste"; //MessageBox.Show("sometext"); HtmlElement button = webBrowser.Document.GetElementById("otherId").GetElementsByTagName("button")[0]; button.InvokeMember("CLICK"); } When I run the code with the MessageBox the button is clicked. Without it however, clicking fails beacause the button appears only after the text has been entered. I don't […]

[request for help] Division

i have this array that i need to divide List<double> indskrevetTal = new List<double>(); do { Console.WriteLine("Please put in a number"); indskrevetTal.Add (Convert.ToDouble(Console.ReadLine())); Console.WriteLine("are you done. true/false"); bool svar =Convert.ToBoolean(Console.ReadLine()); if (svar == true) break; else { continue; } } while (true); double[] færdigSkrevetTal = indskrevetTal.ToArray(); and i have gotten this far static double Division(double[] […]

[request for help] Calculater

i have been given a task by my teacher to make a calculater i could really use help with calculating within an Array here is how far i have come class Program { static void Main(string[] args) { List<double> indskrevetTal = new List<double>(); do { Console.WriteLine("Please put in a number"); indskrevetTal.Add (Convert.ToDouble(Console.ReadLine())); Console.WriteLine("are you done. […]