Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: WPF C1:busy indicator

$
0
0

Hi Kareem,

You may implement this using a C1MaskedTextBox, by handling its \’PreviewTextInput\’ event.

c1MaskedTextBox1.PreviewTextInput += (s, e) =>
{
  Regex regex = new Regex(\"[^0-9.-]+\");
  if (regex.IsMatch(e.Text))
   e.Handled = true;
};

Also, if you so wish I will try to figure out a way to remove the up/down markers, or set them invisible.
Please let me know.

~Anupam


Viewing all articles
Browse latest Browse all 14170

Trending Articles



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