Results 1 to 4 of 4

Thread: Make default in txtBox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Posts
    17

    Make default in txtBox

    Hi!
    How do I make "0" become the default in a textBox when I open it?

    Thanks!

  2. #2
    Junior Member
    Join Date
    Aug 2006
    Posts
    27

    Re: Make default in txtBox

    you havent explored your VS.Net, have you? there is an option in properties - text.. also you can do it in code - in form load event -

    yourtextbox.text = "0"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Posts
    17

    Re: Make default in txtBox

    but it dosent display "0" in txtbox when you open the program.

  4. #4
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: Make default in txtBox

    Tell us exactly what you're doing because martins is absolutely correct. The only possibility is that you have code elsewhere that changes the value, or you didn't set the Text property in the VS properties window correctly.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

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