Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Number

Number

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ADY007
    wrote on last edited by
    #1

    How to let the user write In numbers only in a textbox?? :-? If someone type in letter A the program will pop up a messagebox! How can i read the textbox with ASCII? Adrian De Battista

    C T 2 Replies Last reply
    0
    • A ADY007

      How to let the user write In numbers only in a textbox?? :-? If someone type in letter A the program will pop up a messagebox! How can i read the textbox with ASCII? Adrian De Battista

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      The TextChanged event will tell you whenever anyone types something in a text box. All you have to do is write the code to capture the non-numeric text and put up your message box.


      My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

      1 Reply Last reply
      0
      • A ADY007

        How to let the user write In numbers only in a textbox?? :-? If someone type in letter A the program will pop up a messagebox! How can i read the textbox with ASCII? Adrian De Battista

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        PsYcHo_A wrote: How to let the user write In numbers only in a textbox?? you could override the KeyPress event, with the IsNumeric() function... PsYcHo_A wrote: If someone type in letter A the program will pop up a messagebox! i don't recommend you to popup a message box each time the user press a wrong key ; it will fastly become irritating to him. Prefer the error providers instead ; you could display an icon next to the control you want, without blocking the user. PsYcHo_A wrote: How can i read the textbox with ASCII? use the TextBox.Text() method...


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        M 1 Reply Last reply
        0
        • T toxcct

          PsYcHo_A wrote: How to let the user write In numbers only in a textbox?? you could override the KeyPress event, with the IsNumeric() function... PsYcHo_A wrote: If someone type in letter A the program will pop up a messagebox! i don't recommend you to popup a message box each time the user press a wrong key ; it will fastly become irritating to him. Prefer the error providers instead ; you could display an icon next to the control you want, without blocking the user. PsYcHo_A wrote: How can i read the textbox with ASCII? use the TextBox.Text() method...


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          M Offline
          M Offline
          Madni Abbasi
          wrote on last edited by
          #4

          error provider will be more sufficient . its also recommended from no. of professionals. u can search this topic from MSDN with keyword "error provider"

          T 1 Reply Last reply
          0
          • M Madni Abbasi

            error provider will be more sufficient . its also recommended from no. of professionals. u can search this topic from MSDN with keyword "error provider"

            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            i know i know, it's what i said... i think you told to the wrong person though


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            M 1 Reply Last reply
            0
            • T toxcct

              i know i know, it's what i said... i think you told to the wrong person though


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

              M Offline
              M Offline
              Madni Abbasi
              wrote on last edited by
              #6

              sorry dear . actually I wanted to tell the person who putted question there

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups