Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

C# Winform TextBox How to handle copying and pasting with criteria

$
0
0
I have a few textboxes in my application that can only accept decimals. I handled this through the key press event handler but the user can still input whatever text he would like through copying and pasting how to only allow the correct data to be pasted into this textbox without using a masked text box?

Debra has a question


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>