当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: using System;using System.Text;using System.Net;using System.IO;using System.Net.Sockets;using System.Collections;using System.Diagnostics;namespace...
 

 

 ·贴一个无负担延时类模块     »显示摘要«
    摘要:平时我们写程序常常会要用到延时函数,一般的做法是用timer控件,要么就是使用sleep函数这两种方法似乎都有自身的不足之处,这里贴一个老外(牛人)写的延时类,可以做到延时不影响主程序运行(无负担延时)类模块源代码如下:version 1.0 classbegin multiuse = -1 true persistable = 0 notpersistable databindingbehavi......
    摘要: <%@ page language="c#" codebehind="ygdz_xianlist.aspx.cs" autoeventwireup="false" inherits="ygdzwww.webform1" %><!doctype html public "-//w3c//dt......


使用C#与NNTP服务器交互!

namespace nntptools { /// <summary> /// class1 的摘要说明. /// </summary> class debug {  /// <summary>  /// 应用程序的主入口点.  /// </summary>  [stathread]  static void main(string[] args) {   nntpclass nc=new nntpclass();   nc.connect("msnews.microsoft.com");   arraylist grouplist=nc.getnewsgroups();   for(int i=0;i<grouplist.count;i++){    console.writeline(grouplist[i].tostring());   }   arraylist cardlist=nc.getnews("microsoft.public.cn.dotnet.framework");   console.writeline("=============================================================");   streamwriter sw=file.createtext("c:\\news.txt");   for(int i=0;i<cardlist.count;i++){    console.writeline(cardlist[i].tostring());    sw.writeline(cardlist[i].tostring());    sw.writeline("=============================================================");   }   sw.flush();   sw.close();   nc.disconnect();      console.readline();  } } 【推荐阅读:安装程序制作(将.net 部署到没有安装

using system;using system.text;using system.net;using system.io;using system.net.sockets;using system.collections;using system.diagnostics;


...   下一页
 ·c#.net常用的小函数和方法集     »显示摘要«
    摘要:1、datetime 数字型 system.datetime currenttime=new system.datetime(); 1.1 取当前年月日时分秒 currenttime=system.datetime.now; 1.2 取当前年 int 年=currenttime.year; 1.3 取当前月 int 月=currenttime.month; 1.4 取当前日 int 日=curre......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE