做了一个站内搜索软件,很简单。自己留着用
https://files.cnblogs.com/mgod/SiteSearch.rar
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 站内搜索
{
public partial class frmSearch : Form
{
public frmSearch()
{
InitializeComponent();
}
public static string google = "http://www.google.cn/custom?hl=zh-CN&newwindow=1&safe=active&cof=&domains=SearchSite&q=KeyWords&sitesearch=SearchSite&meta=";
private void btnSearch_Click(object sender, EventArgs e)
{
string search = google;
search = search.Replace("SearchSite", this.cboSite.Text).Replace("KeyWords", this.txtKeyWords.Text.Trim());
System.Diagnostics.Process.Start(search);
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 站内搜索
{
public partial class frmSearch : Form
{
public frmSearch()
{
InitializeComponent();
}
public static string google = "http://www.google.cn/custom?hl=zh-CN&newwindow=1&safe=active&cof=&domains=SearchSite&q=KeyWords&sitesearch=SearchSite&meta=";
private void btnSearch_Click(object sender, EventArgs e)
{
string search = google;
search = search.Replace("SearchSite", this.cboSite.Text).Replace("KeyWords", this.txtKeyWords.Text.Trim());
System.Diagnostics.Process.Start(search);
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
https://files.cnblogs.com/mgod/SiteSearch.rar