using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms;namespace ConsoleApplication1 { class Program { static void Main(string[] args) { NotifyIcon ni = new NotifyIcon(); ni.Icon = new System.Drawing.Icon(@"C:\Program Files\Microsoft Office\Office12\msn.ico"); ni.Visible = true; ni.ShowBalloonTip(2000, "title", "content", ToolTipIcon.Info); Console.ReadKey(); } } }
notifyIcon1.ShowBalloonTip(气球显示的时间,气球显示的标题,显示的文本,ToolTipIcon.值);
s.ShowBalloonTip(10,"你好啊","欢迎小雅妹妹", System.Windows.Forms.ToolTipIcon.Info);
额……你一再强调是控制台下,我还以为你已经懂得在窗体下怎么用呢……
System.Windows.Forms.NotifyIcon ni = new System.Windows.Forms.NotifyIcon();
ni.Icon = new System.Drawing.Icon(@"E:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary\VS2005ImageLibrary123\VS2005ImageLibrary\icons\WinXP\error.ico");
//一个图标的路径
ni.Visible = true;
ni.ShowBalloonTip(2000, "测试", "测试",System.Windows.Forms.ToolTipIcon.Info );
System.Windows.Forms
System.Drawing
using System.Drawing
System.Windows.Forms.NotifyIcon s = new System.Windows.Forms.NotifyIcon();
s.ShowBalloonTip(10,"你好啊","欢迎小雅妹妹", System.Windows.Forms.ToolTipIcon.Info);
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
NotifyIcon ni = new NotifyIcon();
ni.Icon = new System.Drawing.Icon(@"C:\Program Files\Microsoft Office\Office12\msn.ico");
ni.Visible = true;
ni.ShowBalloonTip(2000, "title", "content", ToolTipIcon.Info);
Console.ReadKey();
}
}
}
哪有啊 系统土标都在 一个DLL文件里面吧
有的是这样,有的就是ico文件,你搜一下吧
刚才发给老师 老师说不合格 不可以这样写 要调用 系统的什么DLL命令
这样真能考得到人吗 Console.ForegroundColor
Console.WindowHeight
Console.WindowWidth
Console.BufferHeight
Console.BufferWidth
你那么牛 写个我们高班的 syn多段扫描器啊 也用控制台写 直接读txt文本里面的IP段 (N段的) 开放端口自动保存 我们老师说 只有他会写 !!!