Note that there are some explanatory texts on larger screens.

plurals
  1. POOpen webcontrol in threads and DataGridViewComboBoxColumn
    text
    copied!<p>I want my forms application to start multiple threads to download the source code from a site in parallel.</p> <p>This is just a part of the main application.</p> <p>Link to the picture: <a href="http://www.abload.de/img/pic9aym7.png" rel="nofollow">http://www.abload.de/img/pic9aym7.png</a><br> I'm not allowed to post images.</p> <pre><code> private void buttonstart_Click(object sender, EventArgs e) { //check the list below } private void buttonabort_Click(object sender, EventArgs e) { //should always could abort the process/threads. (close all webcontrols ect) } </code></pre> <ol> <li>It should start to read the numeric in the box. </li> <li>foreach number it should open a webbrowser or httpwebrequest to download some source code and count the runs (in this example 4 runs).<br> so if the website is like "http://www.bla.com/", it should add the run to the end of the variable (http://www.bla.com/1-4).</li> <li><p>Parse the source into different strings. (strWebsiteString1, strWebsiteString2, and so on. I'll need them later)</p></li> <li><p>if that is done, it should read some tables(from the strings) and parse them in to arrays. (same here array1[3], array2[3], for future use)<br> To get the tables I think I will use htmlagilitypack. I've already coded this htmlagilitything for console. I just need to rebuild it for my forms application, and change console writeline to put it in some arrays.</p> <p>But I'm open to other/better solution.</p></li> <li>All my data I've parsed into the arrays should now been shown in the datagridcolumns. Each run will get its own row. But when I try to add items into the comboboxcolumn, I get errors at each and every comboboxcolumn.</li> <li>To get them in the right order and to know which browser data it is from, column1 will get the number of runs.</li> </ol> <p>I've already tried by myself. I get stuck with the threads respectively crossthreading. And the datagridview makes a lot trouble too.</p> <p>Do me a favour and help me to solve this problem and show me maybe show a snippet/sample what could help me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload