有谁用过.net、C#做过消息提醒功能的啊 ,比如我设定有了每天要做的工作,然后当我打开工作网站时就提醒我今天要做的事,和那个QQ邮件到达提醒可能有点相近。

解决方案 »

  1.   

    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 StockWorkClient
    {
        public partial class FormMsgTip : Form
        {
            public FormMsgTip()
            {
                InitializeComponent();            m_screenHeight = Screen.PrimaryScreen.Bounds.Height;            m_screenWidth = Screen.PrimaryScreen.Bounds.Width;            //设置提示窗口坐标在屏幕可显示区域之外                this.Location = new Point(m_screenWidth - Width, m_screenHeight);
                this.timer1.Enabled = true;
            }        private int m_screenWidth;//屏幕宽度            private int m_screenHeight;//屏幕高度            private bool m_finished = false;//是否完全显示提示窗口        private void timer1_Tick(object sender, EventArgs e)
            {            if (!m_finished)//如果提示窗口没有完全显示    
                {                //如果提示窗口的纵坐标与提示窗口的高度之和大于屏幕高度                    if (this.Location.Y + Height + 30 >= m_screenHeight)
                    {                    this.Location = new Point(this.Location.X, Location.Y - 8);                }            }            else//如果提示窗口已经完成了显示,并且点击了确定按钮    
                {                //如果提示窗口没有完全从屏幕上消失                    if (this.Location.Y < m_screenHeight)
                    {                    this.Location = new Point(this.Location.X, Location.Y + 8);                }
                    else//如果已经消失,则关闭
                    {
                        this.Close();
                    }
                    m_finished = true;            }        }        private void button1_Click(object sender, EventArgs e)
            {        }        private void button2_Click(object sender, EventArgs e)
            {
                this.m_finished = true;
                //StockClient.Current.
            }    }
    }
    窗体显示代码。业务逻辑方面,你设置一个数据库,输入事务和时间,设置timer , 检查到时间然后出上面的窗体。 
      

  2.   

    有没有关于web的啊,还没研究出来呢?希望能指导一下