Results 1 to 8 of 8

Thread: Numeric Value Only in textbox

Threaded View

  1. #1

    Thread Starter
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Numeric Value Only in textbox

    Hi! I would like to share what I have created. It just a simple could that will limit the textbox entry to numbers only.

    The code is in a module so you can reuse it. BTW, it also allows you to use period(.) and negative(-). You are limited to use only one negative sign and can only be put before any number.

    I have not included enter key in the module instead it is done in the keypress event of textbox.

    Please leave me some reputation if you like this code!

    Code edited: Now right click and paste is disabled
    Attached Files Attached Files
    Last edited by Simply Me; May 28th, 2006 at 08:40 AM. Reason: Right Click and Paste added
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width