0

I want to enter the numeric value in the masked textbox.

enter image description here

I have written the following code

numericElement.SetAttribute("value", "123456789");

enter image description here

It displays the value in the textbox but when I place the cursor on the textbox it gets disappear.

enter image description here

How can I type the number in masked textbox in web browser control C#

Golda
  • 3,823
  • 10
  • 34
  • 67
  • https://stackoverflow.com/questions/10758683/how-to-force-only-numeric-values-be-allowed-in-maskedtextbox – Masoud Andalibi Nov 28 '19 at 11:47
  • I need to set a value for the masked text box in the web browser control – Golda Nov 28 '19 at 12:28
  • You aren't providing enough information, so people are confused. Web browser control? So are you using ASP.NET? What type is numericElement? – robbpriestley Nov 29 '19 at 03:17
  • @robbpriestley, Web browser control in C# windows application. numericElement is a variable name for HTMLELEMENT – Golda Nov 29 '19 at 05:06

0 Answers0