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
  1. Home
  2. General Programming
  3. Visual Basic
  4. Getting Blank text value on Textbox Keypress [modified]

Getting Blank text value on Textbox Keypress [modified]

Scheduled Pinned Locked Moved Visual Basic
help
3 Posts 3 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.
  • M Offline
    M Offline
    mdrizwan_1
    wrote on last edited by
    #1

    Hello Everbody, M getting a problem on textBox Keypress.When i pass 1st Character in textBox on keypress it takes textBox.text="" value.Can Anybody provide Solution to the problem please its menance bug. Thanks in advance Thanks Christian Graus Problem [Solved]

    modified on Saturday, September 12, 2009 3:45 AM

    C A 2 Replies Last reply
    0
    • M mdrizwan_1

      Hello Everbody, M getting a problem on textBox Keypress.When i pass 1st Character in textBox on keypress it takes textBox.text="" value.Can Anybody provide Solution to the problem please its menance bug. Thanks in advance Thanks Christian Graus Problem [Solved]

      modified on Saturday, September 12, 2009 3:45 AM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The keypress event allows you to block the text from going on to the textbox, Handle the keyup event instead, if you want the key's contents to already be reflected in the textboxes contents. It's not a bug, at all. (edit) as I think about it, the textchanged event is the one you want, if you want to know when the text in the textbox changes.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • M mdrizwan_1

        Hello Everbody, M getting a problem on textBox Keypress.When i pass 1st Character in textBox on keypress it takes textBox.text="" value.Can Anybody provide Solution to the problem please its menance bug. Thanks in advance Thanks Christian Graus Problem [Solved]

        modified on Saturday, September 12, 2009 3:45 AM

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        use KeyUp event. Keypreess fires just before the Text is changed. :rose:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        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