• /r/csharp
  • 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 […]

  • /r/csharp
  • [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[] […]

  • /r/csharp
  • [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. […]

  • /r/csharp
  • [Request for help]Testing legacy code

    tl;dr What testing frameworks and types of tests are recommended for a desktop app that interacts with a web application? I'm a junior developer, I've been teaching myself web development for about a year now. In November, I started working for a startup company (just me and the owner). He's a project manager for another […]