易截截图软件、单文件、免安装、纯绿色、仅160KB

求一个C#新年倒计时的程序

求一个C#新年倒计时的程序
还倒计时啊,我天天都是过新年啊

time_t t = time(0);
    char tmp[64];
    strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A 本年第%j天 %z",localtime(&t) );
    puts( tmp );
    return 0;

用什么写啊!
用Form形式还是 控制台??

楼主的意思是打包成exe给他。。。。。。。

;-)

这个问题比较简单吧!
用winform给你写一个。。。
C# code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{

DateTime dt = new DateTime(2010, 01, 01, 00, 00, 00);

public Form1()
{

InitializeComponent();
this.label1.Text = "距离新年还有: ";
this.timer1.Start();
}

private void timer1_Tick(object sender, EventArgs e)
{
DateTime dateNow = System.DateTime.Now;
TimeSpan dm= dt - dateNow;//间隔天数

string str = dm.ToString();
string [] array = str.Split(new char []{'.',':'});

label2.Text =array [0]+"天 "


相关问答:

C#调用 C DLL问题,懂的来抢分了

//C 接口
extern "C"
{
  TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);  
}
//我在C#中声明
//调用C DLL 中的函数
[DllImport("OCRapi.dll&quo ......

c# c/s 通过webservice验证

客户端:分布在全国不同地区,不同的用户有不同的用户名和密码。
服务端:采用webservice
数据库:客户信息表(user_info),客户合同表(user_contract)

问题:用户登录之后要查看合同信息,我在服务 ......

C# 利用socket传输XML文件问题

我现在要做一个用c#做的,利用socket传输XML文件,并解读XML文件,执行XML里面的相关操作之后,把结果动态地写入XML文件里,再传回去!最好能给个案例看看,急急急啊!!!
谢谢了!
怎么个解析法?

1、.net Romti ......

asp.net(c#) 保存xml数据(将数据写入到xml文件中)

<?xml version="1.0" encoding="utf-8"?>
<bcaster>
<item item_url="images/nei1_03.gif" link="http://www.baidu.com" />
<item item_url=& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号