web development India freelance website designer
This only lets numbers into the txt box and filters out all letters
In the Keypress event of your textbox, insert the following code:

If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0

This makes the text that is typed go backwards
(backwards not as letters facing other way)

Private Sub Text1_KeyPress(KeyAscii as Integer)
Static TextBoxStr as String 'Create a string that stays there...
TextBoxStr = Chr(KeyAscii) & TextBoxStr 'Add the key pressed to the front of the variable that holds the actual displayed text
text1.Text = TextBoxStr 'Display that variable as the text box's text
KeyAscii = 0 'Turn the KeyAscii to null so that it doesn't put the letter in the textbox on its own
End Sub
Filter out empty spaces in a Text-Box

1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550

Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design