first commit
This commit is contained in:
25
Classes/TextBoxConPaste.cs
Normal file
25
Classes/TextBoxConPaste.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace EFCDesk.Classes
|
||||
{
|
||||
public class TextBoxConPaste : TextBox
|
||||
{
|
||||
private const int WM_PASTE = 0x0302;
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
base.WndProc(ref m);
|
||||
|
||||
if (m.Msg == WM_PASTE)
|
||||
{
|
||||
// Después de pegar, limpiar portapapeles
|
||||
Clipboard.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user