WinForm实现气泡提示窗口
效果图
本实例实现时主要用到了NotifyIcon控件的ShowBalloonTip方法
NotifyIcon控件表示在通知区域中创建图标的控件,其ShowBalloonTip方法用于在任务栏中持续显示具有指定标题、文本和图标的气球提示指定时间,该方法的语法格式如下:
Void NotifyIcon ShowBalloonTip(int timeout,string tipTitle,string tipText,ToolTipIcon tipIcon);
//timeout 表示气球提示显示的时间长度
//tipTitle 表示要在气球提示上显示的标题
//tipText 表示要在气球提示的显示的文本
//tipIcon 表示气球提示的图标
代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data