7,765
社区成员
发帖
与我相关
我的任务
分享
public Form1()
{
InitializeComponent();
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
Process.Start("http://docer.wps.cn/frontsearch/id-10068.htm");
}
catch { }
}
private void button1_Click(object sender, EventArgs e)
{
try
{
string res = WebTools.doGet(textBox1.Text.Trim(), string.Empty);
string tempstr = res.Substring(0, res.IndexOf("_1.jpg"));
string tempstr2 = tempstr.Substring(0, tempstr.LastIndexOf("/")-1);
tempstr2 = tempstr2.Substring(tempstr2.LastIndexOf("/") + "/".Length);
tempstr = tempstr.Substring(tempstr.LastIndexOf("/")+1);
textBox2.Text = "http://wdl1.cache.wps.cn/wps/cdnwps//upload/official/template/vip/" + tempstr2 + "/" + tempstr + ".ppt";
}
catch { MessageBox.Show("获取失败"); }
}
private void button2_Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(textBox2.Text.Trim(), true, 50, 3);
}