Results 1 to 5 of 5

Thread: numbers or characters in a textbox

  1. #1
    BrechtLS's Avatar
    BrechtLS is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 1.1 (VS 2003)
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    32
    Reputation
    89

    numbers or characters in a textbox

    Is it possible to make a textbox where you can only input numbers or characters?
    P.S.: I'm sorry if my language isn't correct, but this is because I'm from Belgium. Normally seen my English isn't so bad but I can't know everything. If you find a mistake you may always say it to me.

  2. #2
    ManicCW's Avatar
    ManicCW is offline VB.NET Forum Miyagee
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jul 2005
    Location
    Mostar
    Posts
    428
    Reputation
    106
    why not. everything is possible in net. you can use onkey* events of the textbox you use to check what keys are pressed or you can make your own textbox control.

  3. #3
    BrechtLS's Avatar
    BrechtLS is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 1.1 (VS 2003)
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    32
    Reputation
    89
    Should it be possible to explain a bit more what I exactly have to do? Because I tried but I don't realy seem to find out how it exactly works. Can you for example explain to me how you can make a textbox where you only can put numbers in?
    P.S.: I'm sorry if my language isn't correct, but this is because I'm from Belgium. Normally seen my English isn't so bad but I can't know everything. If you find a mistake you may always say it to me.

  4. #4
    DavidT_macktool's Avatar
    DavidT_macktool is offline VB.NET Forum Idol
    .NET Framework
    .NET 1.1 (VS 2003)
    Join Date
    Oct 2004
    Location
    Indiana
    Posts
    502
    Reputation
    132
    required field

    Post #10 should get you real close to what you want.

    Thanks to Kulrom.

    also discussed here - with code:

    required field
    David C. Talcott

  5. #5
    BrechtLS's Avatar
    BrechtLS is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 1.1 (VS 2003)
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    32
    Reputation
    89
    Thanks a lot I was searching for this for some while now!
    P.S.: I'm sorry if my language isn't correct, but this is because I'm from Belgium. Normally seen my English isn't so bad but I can't know everything. If you find a mistake you may always say it to me.

Bookmarks

Posting Permissions

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