C#で「geckoWebBrowser」を含むアプリを作成しています。しかし、Web ページの読み込みが完了するのを待ってから、他の命令を実行し続ける必要があります。
私のコードで私を助けてください:
private void button1_Click(object sender, EventArgs e)
{
listBox1.SelectedIndex = 0;
while (listBox1.Items.Count != 1)
{
geckoWebBrowser1.Navigate(textBox1.Text);
// i want to perform below thing after web page load completes
listBox1.Items.RemoveAt(listBox1.SelectedIndex);
listBox1.SelectedIndex = 0;
int i = listBox1.Items.Count;
string str = Convert.ToString(i);
label2.Text = str;
}
}