Here is a code segment help to achieve this task. This is helpful,when we developing a accounting software or buisiness softwares. This code only works for VB 6.0 and not works for ‘pasting’ event. Follow the instruction: Place the following code in the module part of your project. Call this function in the ‘Keypress’ event of textbox. Public Function SetNumericTextBox(Textbox As Textbox, KeyAscii) If KeyAscii =...

Read More