|
-
Jun 13th, 2005, 03:45 PM
#1
Thread Starter
Lively Member
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.
-
Jun 13th, 2005, 03:54 PM
#2
Thread Starter
Lively Member
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.
-
Jun 13th, 2005, 04:04 PM
#3
Thread Starter
Lively Member
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.
-
Jun 13th, 2005, 05:25 PM
#4
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
-
Jun 13th, 2005, 06:26 PM
#5
Thread Starter
Lively Member
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.
-
Jun 14th, 2005, 10:10 AM
#6
Thread Starter
Lively Member
Re: Stupid question...textbox.enabled=true [RESOLVED]
 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.
-
Jun 14th, 2005, 10:21 AM
#7
Frenzied Member
Re: Stupid question...textbox.enabled=true [EVEN MORE RESOLVED]
Wow you answered your question by yourself 
Great stuff
-
Jun 14th, 2005, 10:24 AM
#8
Thread Starter
Lively Member
Re: Stupid question...textbox.enabled=true [EVEN MORE RESOLVED]
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|