在ASP.NET中用C#语言编写事物提醒~~~~~~~~[在线等] 一个text框中输入文字,几个Radiobutton用来选择时间.当我从一个Radiobutton中选择一个时间值时,比如选2点 时,单击button按钮,当到2点时会弹出一个对话框显示text框中的内容。请简单点好,我是出学者~~~~~~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用form.timer就可以了。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication2{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } Alert alert; private void timer1_Tick(object sender, EventArgs e) { if (radioButton1.Checked == true) { if (DateTime.Now.ToString() == "2009-5-6 02:00:00") { if (alert == null) { alert = new Alert(this.textBox1); alert.ShowDialog(); timer1.Enabled = false; } } } } private void Form1_Load(object sender, EventArgs e) { timer1.Enabled = true; timer1.Start(); } }}public Alert(TextBox te) { InitializeComponent(); this.text = te; this.textBox1.Text = te.Text; } timer 事件在哪?我用VS2005生成了一个网站,在里面看不到timer 1楼的是WINFORM的你那个光C#无法完成。你打开页面后你页面的生命周期已经结束了。用JS实现吧SETINTERVAL(FUNCTION(){...},1000); c#还没学好呢,又要学JS?高手们可以说的复杂点么?别那么简单 ASP.NET 在郵件中如何提交HTML表單到ASPX頁 求助!!C#入门编程错误 关于C#中创建数组时的内存溢出. WebBrowser控件如何重新初始化 请大家推荐个好用的打包软件,或者教教怎么用Advanced Installer.谢谢. 唉```散分`` 使用transactionscope的问题 教你一招:构造圆角窗体 视频采集卡的二次开发,用C#做应用程序出错 求救,.NET的组件作中间件,怎样实现负载均衡 C#桌面程序的resx文件过大怎么解决 activex控件拖动到winform上提示要注册,注册成功后照样提示要注册,这是为什么?
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Alert alert;
private void timer1_Tick(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
{
if (DateTime.Now.ToString() == "2009-5-6 02:00:00")
{
if (alert == null)
{
alert = new Alert(this.textBox1);
alert.ShowDialog();
timer1.Enabled = false;
}
}
}
} private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Start();
}
}
}
public Alert(TextBox te)
{
InitializeComponent();
this.text = te;
this.textBox1.Text = te.Text;
}
你那个光C#无法完成。你打开页面后你页面的生命周期已经结束了。
用JS实现吧
SETINTERVAL(FUNCTION(){...},1000);