Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

maskedtextbox

masked input not working in android mobiles?

August 23, 2023 by Tarik

I resolved this issue with three actions, which have fixed this for all Android 4.0+ phones: Update masked-input to at least version 1.4 Add type=”tel” to the input, to trigger the numeric keyboard Remove the input’s maxlength attribute or set it to a value certain not to interfere with the caret action, like 20.

Categories android Tags android, jquery, jquery-plugins, maskedtextbox Leave a comment

Convert Difference between 2 times into Milliseconds?

May 9, 2023 by Tarik

DateTime dt1 = DateTime.Parse(maskedTextBox1.Text); DateTime dt2 = DateTime.Parse(maskedTextBox2.Text); TimeSpan span = dt2 – dt1; int ms = (int)span.TotalMilliseconds;

Categories c# Tags c++, maskedtextbox, time Leave a comment

Enter key pressed event handler

March 9, 2023 by Tarik

Either KeyDown or KeyUp. TextBox tb = new TextBox(); tb.KeyDown += new KeyEventHandler(tb_KeyDown); static void tb_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { //enter key is down } }

Categories c# Tags c++, maskedtextbox, textbox, user-interface, wpf Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa