For i As Integer = 0 To Tables("cc").Rows.Count -1
Dim lbl As WinForm.WebBrowser
lbl = e.Form.CreateControl("lable1", ControlTypeEnum.WebBrowser)
lbl.Left = 100
lbl.Top = 100 + i*150
e.Form.AddControl(lbl)
lbl.Address = "http://192.168.1.204:90/c/example/m.php?aa=" & Tables("cc").Rows(i)("touser")
Next
以上代码,项目打开后点击按钮就可以正常执行,但只能执行一次,要想执行第二次必须重新打开一次项目,请问一下
老师是什么原因
下面这段代码就可以正常执行多次,但是用额外打开的浏览器了,请问一下我这两段代码该如何优化一下,我只想执行一下URL
For i As Integer = 0 To Tables("cc").Rows.Count -1
Dim Proc As New Process '定义一个新的Process
Proc.File = "http://192.168.1.204:90/c/example/m.php?aa=" & Tables("cc").Rows(i)("touser")
Proc.Start()
Next
[此贴子已经被作者于2016/11/23 20:27:26编辑过]