- 积分
- 40165
- 好友
- 记录
- 主题
- 帖子
- 听众
- 收听
|
发表于 2013-7-23 11:35:02
|
显示全部楼层
[code=csharp]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;
using System.Data;
namespace alarm_clock
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Class1 c = new Class1();
label1.Text =DateTime.Now.ToShortTimeString() ;
if (label1.Text == textBox1.Text)
{
c.alarmclock();
timer1.Enabled = false;
}
}
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
}
}
[/code]
看过,如果楼主能美化一下界面就更好了,可以做成一个闹钟的不规则图片,这样估计会好看一些 |
|