mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
18 lines
443 B
C#
18 lines
443 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Crypto_Notepad
|
|
{
|
|
public class HideCaretRichTextBox : ExRichTextBox
|
|
{
|
|
[DllImport("user32.dll", EntryPoint = "HideCaret")]
|
|
private static extern long HideCaret(IntPtr hwnd);
|
|
|
|
protected override void WndProc(ref Message m)
|
|
{
|
|
HideCaret(this.Handle);
|
|
base.WndProc(ref m);
|
|
}
|
|
}
|
|
}
|