mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Added able to clear clipboard
This commit is contained in:
parent
151887a8c1
commit
4903a4f91d
2 changed files with 17 additions and 0 deletions
12
Crypto Notepad/Forms/MainForm.Designer.cs
generated
12
Crypto Notepad/Forms/MainForm.Designer.cs
generated
|
|
@ -130,6 +130,7 @@ public void InitializeComponent()
|
|||
this.statusPanelWordwrapLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.fileLockedKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||
this.richTextBox = new Crypto_Notepad.ExRichTextBox();
|
||||
this.clearClipboardMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainMenu.SuspendLayout();
|
||||
this.contextMenu.SuspendLayout();
|
||||
this.searchPanel.SuspendLayout();
|
||||
|
|
@ -287,6 +288,7 @@ public void InitializeComponent()
|
|||
this.findMainMenu,
|
||||
this.mainMenuSeparator6,
|
||||
this.selectAllMainMenu,
|
||||
this.clearClipboardMainMenu,
|
||||
this.wordWrapMainMenu,
|
||||
this.readOnlyMainMenu,
|
||||
this.mainMenuSeparator7,
|
||||
|
|
@ -1253,6 +1255,15 @@ public void InitializeComponent()
|
|||
this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged);
|
||||
this.richTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RichTextBox_KeyDown);
|
||||
//
|
||||
// clearClipboardMainMenu
|
||||
//
|
||||
this.clearClipboardMainMenu.Name = "clearClipboardMainMenu";
|
||||
this.clearClipboardMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt)
|
||||
| System.Windows.Forms.Keys.C)));
|
||||
this.clearClipboardMainMenu.Size = new System.Drawing.Size(221, 22);
|
||||
this.clearClipboardMainMenu.Text = "Clear Clipboard";
|
||||
this.clearClipboardMainMenu.Click += new System.EventHandler(this.ClearClipboardMainMenu_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
@ -1410,5 +1421,6 @@ public void InitializeComponent()
|
|||
private System.Windows.Forms.ToolStripMenuItem readOnlyMainMenu;
|
||||
protected internal System.Windows.Forms.ToolStripStatusLabel statusPanelReadonlyLabel;
|
||||
protected internal System.Windows.Forms.ToolStripStatusLabel statusPanelWordwrapLabel;
|
||||
private System.Windows.Forms.ToolStripMenuItem clearClipboardMainMenu;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1372,6 +1372,11 @@ private void SelectAllMainMenu_Click(object sender, EventArgs e)
|
|||
}
|
||||
}
|
||||
|
||||
private void ClearClipboardMainMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
Clipboard.Clear();
|
||||
}
|
||||
|
||||
private void ReadOnlyMainMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
richTextBox.ReadOnly = readOnlyMainMenu.Checked;
|
||||
|
|
|
|||
Loading…
Reference in a new issue