textbox controls

  • Thread starter Thread starter cmdolcet69
  • Start date Start date
C

cmdolcet69

I have a text box control that user enter values into the textbox. Let
say a user entered some text that had 10 characters in it. Let also
consider this a password textbox. When the user went to run the
system, he entered in his 10 character password then he entered in his
3 digit ID number. making the textbox 13 characters long...how can he
do this.....
 
I have a text box control that user enter values into the textbox. Let
say a user entered some text that had 10 characters in it. Let also
consider this a password textbox. When the user went to run the
system, he entered in his 10 character password then he entered in his
3 digit ID number. making the textbox 13 characters long...how can he
do this.....

Huh?

Any standard textbox can handle 13 characters? Perhaps you've left
something out?

Thanks,

Seth Rowe [MVP]
 
I have a text box control that user enter values into the textbox. Let
say a user entered some text that had 10 characters in it. Let also
consider this a password textbox. When the user went to run the
system, he entered in his 10 character password then he entered in his
3 digit ID number. making the textbox 13 characters long...how can he
do this.....

Just type 13 chars, but i beleive you want the last 3 digit to get
from somewhere else like db, then you may want to concatenate with the
existing 10 chars. If you want to do this, call the these 3 digits
from where you want, then assign it to a string variable, then use &
or + operator to concatenate with 10 chars resulting with 13 chars at
total.
 
cmdolcet69 said:
I have a text box control that user enter values into the textbox.

.... sounds good so far ...
Let say a user entered some text that had 10 characters in it.

.... also, not unheard of ...
Let also consider this a password textbox.

So the user is seeing stars (or blobs) as they type.
When the user went to run the system, he entered in his 10 character
password then he entered in his 3 digit ID number.

So why are the "ID number" and the "passwords" going anywhere near the
/same/ textbox? These are totally separate bits of information - put
them in separate textboxes.
making the textbox 13 characters long...how can he do this.....

tb1.MaxLength = 13 ??

Take a step back and tell us what you're trying to achieve and we'll see
if we can help any further.

HTH,
Phill W.
 
Back
Top