0

I'm trying to loop through a list box text instead of having to select a line, but I am unsure on how to do so.

webBrowser1.Document.GetElementById("user").SetAttribute("value", listBox1.Text);
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Waypast
  • 65
  • 1
  • 1
  • 9

1 Answers1

0

How about

foreach(var item in listbox1.Items)
{
//Do somethings
}

Take a look at this

Transcendental
  • 983
  • 2
  • 11
  • 27