Hi, I have this code, which works perfectly the first time I click a button:
Code:
 private void button3_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate(new Uri("about:blank"));
           
            
            webBrowser1.Document.Write("<table id=\"table\" border=\"1\" cellspacing=\"1\" cellpadding=\"1\">");
            
            for (int r = 0; r <= (numericUpDown1.Value - 1); r++)
            {
                webBrowser1.Document.Write("<tr>");

                for (int c = 0; c <= (numericUpDown2.Value - 1); c++)
                {
                    webBrowser1.Document.Write("<td>&nbsp; &nbsp; &nbsp; &nbsp;</td>");
                }
                webBrowser1.Document.Write("</tr>");
                
            }
            webBrowser1.Document.Write("</table>");
But when I click the button a second time, the browser control just displays a blank page, regardless of whether the numericUpDown values are changed.