jeudi 23 juillet 2015

In C#, how do I create a list of WebBrowsers?

So I have tried 2 seperate solutions, the first resulted in the entire list of web browsers being referenced to a single object and the second with no results appearing at all. Here is the code for the second solution.

        browserArray = new WebBrowser[acc.Length];
        for (int i = 0; i < acc.Length; i++)
        {
            browserArray[i] = new WebBrowser();
            browserArray[i].Location = new Point(291, 12);
            browserArray[i].Size = new Size(751, 412);
            browserArray[i].Visible = true;
        }




Aucun commentaire:

Enregistrer un commentaire