I just want to make an automatic format in the textbox, this is only to set 4 number with 2 decimal in the textbox, when the user enter any number in the textbox, it will be the number format - 4 number with 2 decimal automatically, thanks.

use a masked textbox and set the setmask property accordingly

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.