MainForm.cs
上传用户:linger1010
上传日期:2008-12-08
资源大小:561k
文件大小:1k
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- namespace UsingNotification
- {
- public partial class MainForm : Form
- {
- public MainForm()
- {
- InitializeComponent();
- }
- private void m_btnDisplay_Click(object sender, EventArgs e)
- {
- // 设置属性
- m_notification.Caption = m_txtCaption.Text;
- m_notification.Text = m_txtText.Text;
- m_notification.InitialDuration = (int)m_numDuration.Value;
- m_notification.Critical = m_chkCritical.Checked;
- // 显示提示
- m_notification.Visible = true;
- }
- private void m_btnHide_Click(object sender, EventArgs e)
- {
- m_notification.Visible = false;
- }
- }
- }