From cf376d223ac915a064f57644396e165c8355ca9b Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 20 Nov 2019 13:59:13 +0200 Subject: [PATCH] Added tooltip while hovering app version text --- Crypto Notepad/AboutFrom.Designer.cs | 5 ++++- Crypto Notepad/AboutFrom.resx | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Crypto Notepad/AboutFrom.Designer.cs b/Crypto Notepad/AboutFrom.Designer.cs index c174bb2..50ba970 100644 --- a/Crypto Notepad/AboutFrom.Designer.cs +++ b/Crypto Notepad/AboutFrom.Designer.cs @@ -34,6 +34,7 @@ private void InitializeComponent() this.randomColorTimer = new System.Windows.Forms.Timer(this.components); this.copyToClipboardLabel = new System.Windows.Forms.Label(); this.appInfoRichTextBox = new Crypto_Notepad.HideCaretRichTextBox(); + this.aboutToolTip = new System.Windows.Forms.ToolTip(this.components); this.SuspendLayout(); // // appVersionLabel @@ -47,7 +48,8 @@ private void InitializeComponent() this.appVersionLabel.Size = new System.Drawing.Size(210, 22); this.appVersionLabel.TabIndex = 1; this.appVersionLabel.Text = "Crypto Notepad 1.0.0"; - this.appVersionLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.appVersionLabel_MouseClick); + this.aboutToolTip.SetToolTip(this.appVersionLabel, "Left click to copy debug info to the clipboard"); + this.appVersionLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseClick); // // randomColorTimer // @@ -117,5 +119,6 @@ private void InitializeComponent() private HideCaretRichTextBox appInfoRichTextBox; private System.Windows.Forms.Timer randomColorTimer; private System.Windows.Forms.Label copyToClipboardLabel; + private System.Windows.Forms.ToolTip aboutToolTip; } } \ No newline at end of file diff --git a/Crypto Notepad/AboutFrom.resx b/Crypto Notepad/AboutFrom.resx index 3170420..8e807de 100644 --- a/Crypto Notepad/AboutFrom.resx +++ b/Crypto Notepad/AboutFrom.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 176, 17 + 21, 17