Computing.Net > Forums > Programming > Lock Textbox once focus changed.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Lock Textbox once focus changed.

Reply to Message Icon

Name: haynzee
Date: May 8, 2006 at 12:47:10 Pacific
OS: xp
CPU/Ram: na
Product: na
Comment:

Hi, i am fairly new to VB and have version 6. I have 2 text boxes that need numbers to be entered into them. Now Text2 insnt enabled until text1 has numbers entered into it, which is fine but what i want is as soon as the user clicks text2 or it gets the focus then i want it to lock the numbers in text1 so they cannot be changed. Any ideas??

Also guys i want to make sure that the number in Text 2 has to be bigger than text1 any ideas how i can do that too.

Like i said im new to Vb but its for college and ive done a google but cant find anything.

thanks

Mark

AMD Athlon 64 3500+ sct 939
Gigabyte K8NXP-SlI
Radeon X700pro 256mb
1GB Kingston value ram 3200
Audigy 2 ZS
200GB Maxtor SATA HDD
DVD Rom



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: May 9, 2006 at 04:40:30 Pacific
Reply:

text1.enabled = false

Chi

They mostly come at night...mostly.


0

Response Number 2
Name: Stephen Hall
Date: May 10, 2006 at 13:13:24 Pacific
Reply:

Do you have a textbook? Have you learned about conditional expressions (like if, else, etc.) (I'm serious, not trying to be mean here). If so, check them out and see if you can come up with anything on the number needing to be bigger.

Stephen


"Live long and PROGRAM......or at least do _something_ with all that time...!"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Lock Textbox once focus changed.

VB text change www.computing.net/answers/programming/vb-text-change/10149.html

VB and TextProperty www.computing.net/answers/programming/vb-and-textproperty/567.html

sticky scrolling w/ this site www.computing.net/answers/programming/sticky-scrolling-w-this-site/6885.html