當前位置:編程學習大全網 - 電腦編程 - C# 控制臺托盤氣泡提示!

C# 控制臺托盤氣泡提示!

可以的..

但是要在引用中添加System.Drawing和System.Windows.Forms的DLL引用

using System;

using System.Collections.Generic;

using System.Text;

using System.Drawing;

using System.Windows.Forms;

namespace ConsoleApplication12

{

class Program

{

static void Main(string[] args)

{

NotifyIcon icon = new NotifyIcon();

icon.Icon = new Icon(@"C:\20110301120829400.ico");

icon.Text = "Test";

icon.Visible = true;

Console.ReadLine();

}

}

}

  • 上一篇:考研,假設是清華的,計算機和通信哪個更有前途?還請專業點的人士幫忙分析下,這裏不考慮興趣問題
  • 下一篇:妳好,請問華碩x99-a主板bios怎麽更新?主板bios只自帶ezflash2,無法識別cap格式的bios文件。
  • copyright 2024編程學習大全網