use Windows NetworkConnect stock icon for form and tray
SystemIcons.GetStockIcon(StockIconId.NetworkConnect, 32) — no external files needed.
This commit is contained in:
@@ -18,6 +18,7 @@ public partial class MainForm : Form
|
|||||||
Width = 520;
|
Width = 520;
|
||||||
Height = 380;
|
Height = 380;
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
StartPosition = FormStartPosition.CenterScreen;
|
||||||
|
Icon = SystemIcons.GetStockIcon(StockIconId.NetworkConnect, 32);
|
||||||
InitializeComponents();
|
InitializeComponents();
|
||||||
|
|
||||||
_sessions.Log += msg => this.Invoke(() => _statusLabel.Text = msg);
|
_sessions.Log += msg => this.Invoke(() => _statusLabel.Text = msg);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ static class Program
|
|||||||
|
|
||||||
using var tray = new NotifyIcon
|
using var tray = new NotifyIcon
|
||||||
{
|
{
|
||||||
Icon = SystemIcons.Application,
|
Icon = SystemIcons.GetStockIcon(StockIconId.NetworkConnect, 32),
|
||||||
Text = "gatuna",
|
Text = "gatuna",
|
||||||
Visible = true,
|
Visible = true,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user