以下是初学者我的程序,但是实现不了我的功能,请大家帮帮手完成我的小程序!谢谢!using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace 初级设计项目
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
string s = "http://zhidao.baidu.com/question/83190655.html";
string webBrowserUrl = (s);
webBrowser1.Navigate(new Uri(webBrowserUrl));
HtmlElement btn = webBrowser1.Document.All["btn-value"];
if (btn != null)
btn.InvokeMember("onclick");
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace 初级设计项目
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
string s = "http://zhidao.baidu.com/question/83190655.html";
string webBrowserUrl = (s);
webBrowser1.Navigate(new Uri(webBrowserUrl));
HtmlElement btn = webBrowser1.Document.All["btn-value"];
if (btn != null)
btn.InvokeMember("onclick");
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货