Using Regex.Replace() could be an easy one workaround. Just add System.Text.Reg ularExpressions reference to your `using` section, then create and assign EventHandler for TextChanged events of your textboxes. There you can replace all symbols except digits to "". Pattern in such case would be pretty simple:
"[^0-9]"
User Profile
Collapse
-
Ok I got it on my own. The problem was in rows autoresize - turning it off did the trick.Leave a comment:
-
Spawning dots along the path
Hello!
How can I get such effect? I tried different google queries, however all the tutorials I found were just about moving one object along the guide. But I want to clone those objects somehow - to get dotted line eventually.
Thanks for your attention.... -
Add rows to DataGridView on scroll
Hello!
I have DataGridView control and Hashtable bound to it with rather large amount of data - can contain up to 2000 items. Every row goes with Image, so populating of all that stuff takes lots of time.
In my opinion some obvious ways to optimize this are 1) to paginate flow or 2) to make data added on demand - i.e if you scroll to the bottom of first 500 rows there should appear 500 more (via DataGridView.Sc roll...
No activity results to display
Show More
Leave a comment: