0
I have a Textbox and need that after pressing the right mouse button and clicking paste, it do a check, I tried to use various methods like
TxtTexto.PreviewMouseLeftButtonDown+= new MouseButtonEventHandler(OnMouseClick);
TxtTexto.MouseUp += new MouseButtonEventHandler(OnMouseClick);
TxtTexto.PreviewMouseDown += new MouseButtonEventHandler(OnMouseClick);
TxtTexto.MouseDown += new MouseButtonEventHandler(OnMouseClick);
I took the test here, and it didn’t work I switched the tb for my textobox and did nothing...
– HimorriveL
In this case, it is pasting the text and making 2 checks
– HimorriveL
But the event
OnPaste
is evoked? What checks are you making?– João Martins
yes, it is evoked, in case I take the text, do the checks and at the end I serve the formatted text according to what I need
– HimorriveL