易截截图软件、单文件、免安装、纯绿色、仅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#发邮件21cn

21cn的邮箱,在outlook配置后可以正常收发邮件,可是我写在C#中就不行,换成其它邮箱,163很早注册的。可以发送。查了很久,没有找到原因,请高手帮忙解答。。。小弟,谢了。。代码如下:
private void SendMail ......

c# winform窗体问题

我在form1中的某个方法让form2窗体出现
那么这个时候怎么关闭form1而不关闭form2呢?
Form2 f=new Form2();
f.Show();
this.Close();

引用
Form2 f=new Form2();
f.Show();
this.Close();
这样的话整个程 ......

截取WINfrom中HTML的标签!!! - .NET技术 / C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Syst ......

C# 操作word页脚

C# 我创建了一个word,我现在想向页脚里面插入图片,但有的页脚需要插入,而有的则不需要插入。例如,word总共有20页,第3、9、10、17页需要插入图片,其他的不需要,该怎么弄?
顶起


我们公司自己开发软件
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号