-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainForm.cs
More file actions
48 lines (45 loc) · 1.13 KB
/
Copy pathMainForm.cs
File metadata and controls
48 lines (45 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Created by SharpDevelop.
* User: Administrator
* Date: 2016/8/2
* Time: 8:17
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace BatchOpenUrl
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void Button1Click(object sender, EventArgs e)
{
string[] tempArray = new string[textBox1.Lines.Length];
tempArray = textBox1.Lines;
for(int i=0;i<textBox1.Lines.Length;i++){
string url = tempArray[i];
//MessageBox.Show(url,"第"+(i+1)+"行url:");
System.Diagnostics.Process.Start("IEXPLORE.EXE", url);
}
}
void Button2Click(object sender, EventArgs e)
{
textBox1.Text = "";
}
}
}