-
assume
Cool,一个集成了很多Tab窗口使用方法的多文档界面程序,拥有了他,保管让你创建界面功能复杂的的程序时节省不少时间,本包()
- 2017-09-16 18:28:22下载
- 积分:1
-
c# 扫描IP Http Header
c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
- 2014-06-23下载
- 积分:1
-
明:1、班级留言簿,支持UBB代码 2、班级相册,可以上传你的照片和同学们一起分享 3、班级收藏夹,可以把自己喜欢的网址和同学们一起分享 4、手机短讯,可以在这...
明:1、班级留言簿,支持UBB代码 2、班级相册,可以上传你的照片和同学们一起分享 3、班级收藏夹,可以把自己喜欢的网址和同学们一起分享 4、手机短讯,可以在这里给你的同学发手机短消息 5、历史留言下载,可以把以前的留言下载到自己的机器上保存 6、成员地址导出,下...... -states : one, the class book, support UBB code 2, the class photo, you can upload a photo and the students share three, the class favorites, can be their favorite Web sites and students share four, cell phone text messages can be here to your classmates made phone Short Message 5, history download messages can be used to download messages to their machines kept six members addresses derived, the next
- 2022-02-28 19:53:03下载
- 积分:1
-
.net web service小程序
.net web service小程序 -. net web service applet
- 2023-07-31 05:10:03下载
- 积分:1
-
HHRCFI
得到DLLEXE文件中的资源定义 Cool 可以的很好()
- 2018-03-29 17:53:07下载
- 积分:1
-
Power_spectral_density_analysis (1)
说明: 在MATLAB使用eeglab计算脑电功率,根据频段划分,平均功率(EEG power calculation by EEG Lab)
- 2021-04-12 17:58:57下载
- 积分:1
-
E1与V.35标准说明及E1与V.35信号转换的实现方法。
E1与V.35标准说明及E1与V.35信号转换的实现方法。-E1 and V.35 standard descriptions and E1 and V.35 signal conversion method.
- 2023-06-13 14:25:03下载
- 积分:1
-
C# 电源电压电流上位机 串口源码,rs232
【实例简介】 C# 电源电压电流上位机 源码
- 2021-12-25 00:31:15下载
- 积分:1
-
代码3
实现时滞系统稳定性分析的lMI工具箱,安装在matlab中使用,可以求解(Stability analysis of time-delay systems)
- 2018-12-15 15:19:56下载
- 积分:1
-
Foxmail-Filter-2014.2.25
Foxmail为大家熟悉及常用的客户端软件,方便好用。7.X推出之后更吸引了很多的用户,但有一点非常不好用,就是过滤器的使用。本人工作中会接收很多的部门及人员的邮件,所以设置了很多的过滤器,但这样导致了了列表很长,过滤器没有查找过滤功能,使用非常不方便。
该代码为100 原生开发,分析了Foxmail 7.x的几个重要文件,列出了过滤器名称及邮件目录设置信息。可以往下一步实现过滤器的增强功能。(Foxmail is a familiar and popular client software, easy to use. 7.X after the launch attracted a lot of users, but it is very difficult to use, that is, the use of filters. I work in a lot of departments will receive mail and personnel, so set a lot of filters, but this led to a very long list, the filter did not find the filter function, use very inconvenient.
The code is 100 native development, analyzes several important documents Foxmail 7.x, and lists the names and e-mail directory filter settings. The next step may be to achieve enhancement filter.)
- 2014-02-25 09:34:06下载
- 积分:1