Results 1 to 8 of 8

Thread: Stupid question...textbox.enabled=true [EVEN MORE RESOLVED]

  1. #1

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Resolved Stupid question...textbox.enabled=true [EVEN MORE RESOLVED]

    The textbox's default property is set to disabled, a button click is supposed to enable it but it's not. I've been able to do it just fine in others...what the heck am I missing?
    Last edited by milkmood; Jun 14th, 2005 at 10:11 AM.
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

  2. #2

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Re: Stupid question...textbox.enabled=true

    Nevermind...I was trying to do:
    textbox.enabled = True

    I should have been doing:
    textbox.ReadOnly = False

    Which works.
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

  3. #3

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Re: Stupid question...textbox.enabled=true

    Now I need to figure out how to make ReadOnly=True again if the user decides to go do something else, besides the button click that was intended to be used after modifying the readonly box...hmmm.
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

  4. #4
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: Stupid question...textbox.enabled=true [RESOLVED]

    Hi,

    Use the lostfocus event of the textbox to set the textbox.readonly = true. If they don't use it, they lose it.

    zaza

  5. #5

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Re: Stupid question...textbox.enabled=true [RESOLVED]

    Ah, so, they'll learn quickly to fill in that box first after the button click that sets readonly to false.
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

  6. #6

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Talking Re: Stupid question...textbox.enabled=true [RESOLVED]

    Quote Originally Posted by zaza
    Hi,

    Use the lostfocus event of the textbox to set the textbox.readonly = true. If they don't use it, they lose it.

    zaza
    SWEET! Works just how I need it to...thanks!
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

  7. #7
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Stupid question...textbox.enabled=true [EVEN MORE RESOLVED]

    Wow you answered your question by yourself

    Great stuff

  8. #8

    Thread Starter
    Lively Member milkmood's Avatar
    Join Date
    Mar 2005
    Location
    Forests of Delta Halo
    Posts
    109

    Re: Stupid question...textbox.enabled=true [EVEN MORE RESOLVED]

    Quote Originally Posted by dinosaur_uk
    Wow you answered your question by yourself
    Great stuff
    I have a habit of that...I just need to think/explore more before I ask simple questions.
    When I say 'jump', don't waste time asking 'how high?'.

    Just a poor, dumb wanna-be programmer.

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