摘要:
判断宽带连接方式的类: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace QQ号批量注册{ class judgeBroadband { public const int INTERNET_CONNECTION_MODEM = 1; ... 阅读全文
posted @ 2012-09-23 23:46
163com
阅读(194)
评论(0)
推荐(0)
摘要:
第二部:编写主窗体代码: 要实现自动保存,自动打开QQ注册网页,自动填写表单等功能: 如图: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;usi... 阅读全文
posted @ 2012-09-23 23:44
163com
阅读(276)
评论(0)
推荐(0)
摘要:
QQ号批量注册首先要实现自动换IP的功能,我的方法是让机器自动重新拨号,即可实现自动换IP,实现方法是建一个ADSL类。从中调用,实现,换断网,重新拨号。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;//诊断,调用进程 n... 阅读全文
posted @ 2012-09-23 23:39
163com
阅读(260)
评论(0)
推荐(0)
摘要:
什么是接口?其实,接口简单理解就是一种约定,使得实现接口的类或结构在形式上保持一致。个人觉得,使用接口可以使程序更加清晰和条理化,这就是接口的好处,但并不是所有的编程语言都支持接口,C#是支持接口的。注意,虽然在概念上,C#接口类似于COM接口,但他们的底层结构是不同的。那么,我们来看一下如何声明和使用接口。 声明接口 声明接口在语法上和声明抽象类完全相同,例如这里有一个银行账户的接口: ... 阅读全文
posted @ 2012-09-23 23:29
163com
阅读(140)
评论(0)
推荐(0)
摘要:
1、公有方法实现接口方法 尽管C#在定义接口时不用指明接口方法的访问控制方式,但默认接口方法均为public型(这可以从反编译的IL代码中看到)。下面是使用Reflector查看的接口IL代码 .class private interface abstract auto ansi IControl { .method public hidebysig newslot abstract vir... 阅读全文
posted @ 2012-09-23 23:26
163com
阅读(396)
评论(0)
推荐(0)
摘要:
C# 多线程处理多个队列的数据 public static void Testing(Form sender, DelegateShowStateInfo method){ _StateMethod = method; _OwnerForm = sender; _Exit = false; ThreadPool.QueueUserWorkItem(MainTestThread... 阅读全文
posted @ 2012-09-23 23:23
163com
阅读(575)
评论(0)
推荐(0)
摘要:
1.按惯例先来介绍下socket Windows中的很多东西都是从Unix领域借鉴过来的,Socket也是一样。在Unix中,socket代表了一种文件描述符(在Unix中一切都是以文件为单位),而这里这个描述符则是用于描述网络访问的。什么意思呢?就是程序员可以通过socket来发送和接收网络上的数据。你也可以理解成是一个API。有了它,你就不用直接去操作网卡了,而是通过这个接口... 阅读全文
posted @ 2012-09-23 23:11
163com
阅读(248)
评论(0)
推荐(0)
摘要:
其实事件就是一种特殊的委托。 有事件,就会有对事件进行处理的方法,而事件和处理方法之间是怎么联系起来的呢? 委托就是他们中间的桥梁,事件发生时,委托会知道,然后将事件传递给处理方法,处理方法进行相应处理。 比如,在WinForm中最常见的是按钮的Click事件,它是这样委托的:this.button1.Click+=new System.EventHandler... 阅读全文
posted @ 2012-09-23 23:09
163com
阅读(134)
评论(0)
推荐(0)
摘要:
生么是委托???? 委托类似于函数指针,但函数指针只能引用静态方法,而委托既能引用静态方法,也能引用实例方法。 委托使用分三步:1、委托声明。2、委托实例化。3、委托调用。请看代码: delegate int NumOpe(int a,int b); //第一步,声明委托 class Class1 { static void Main(string... 阅读全文
posted @ 2012-09-23 23:05
163com
阅读(143)
评论(0)
推荐(0)
摘要:
需要添加的命名空间:using System.Xml; 定义几个公共对象:XmlDocument xmldoc ;XmlNode xmlnode ;XmlElement xmlelem ; 1,创建到服务器同名目录下的xml文件: 方法一:xmldoc = new XmlDocument ( ) ;//加入XML的声明段落,XmlDeclaration xmldecl; xmldecl = xml... 阅读全文
posted @ 2012-09-23 23:01
163com
阅读(100)
评论(0)
推荐(0)
摘要:
C#简单操作XML的基本概念 using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument(); //导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml")); //指定一个节点XmlNode root=xml.... 阅读全文
posted @ 2012-09-23 22:59
163com
阅读(109)
评论(0)
推荐(0)
摘要:
简短的一段代码,可以判断webbrowser中打开的网页中是否含有某段字符串。这段代码比较有用,可以利用两个网页的不同之处来分辨出网页是否跳转到了需要的网页。 代码如下:转载请注明出处: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.D... 阅读全文
posted @ 2012-09-23 22:47
163com
阅读(190)
评论(0)
推荐(0)
摘要:
下面是我做的一段批量注册163邮箱的代码,经测试是有效的能够批量注册邮箱,可以换成其他的。欢迎大家 欣赏啊,请不要用于不正当的途径。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;us... 阅读全文
posted @ 2012-09-23 22:41
163com
阅读(424)
评论(0)
推荐(0)
摘要:
我们做一些软件的时候常常要用到换IP的操作,其实简单的换IP的方法就是重新拨号啊,下面就是我实践成功的重新拨号的代码,很简单的,是一个单独的类。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;//诊断,调用进程 namespace ... 阅读全文
posted @ 2012-09-23 15:47
163com
阅读(238)
评论(0)
推荐(0)