Feb 13, 2008 #1 darinmc Technical User Feb 27, 2005 171 GB Hi What i would like to do is, when I type in a text box (tDescrip), I would like the label (lblDescrip) to change instantly with each keypress. Is this possible and could you help with the code please? Thx Darin
Hi What i would like to do is, when I type in a text box (tDescrip), I would like the label (lblDescrip) to change instantly with each keypress. Is this possible and could you help with the code please? Thx Darin
Feb 14, 2008 #2 RivetHed Programmer Feb 17, 2003 294 GB Yes this is possible, what are you wanting to change the label to? Upvote 0 Downvote
Feb 14, 2008 Thread starter #3 darinmc Technical User Feb 27, 2005 171 GB with each key pressed, i want the lDescrip.caption to be equal the tDescrip As i type in . . . I want the same thing to show in the label Thx Darin Upvote 0 Downvote
with each key pressed, i want the lDescrip.caption to be equal the tDescrip As i type in . . . I want the same thing to show in the label Thx Darin
Feb 14, 2008 #4 RivetHed Programmer Feb 17, 2003 294 GB Just put this in the KeyUp event of the textbox lDescrip.caption = tDescrip.text Upvote 0 Downvote
Feb 14, 2008 #6 JoeAtWork Programmer Jul 31, 2005 2,285 CA The Change event might be better as it will detect any change in addition to keystrokes (e.g. pasting something in from the clipboard). Upvote 0 Downvote
The Change event might be better as it will detect any change in addition to keystrokes (e.g. pasting something in from the clipboard).
Feb 16, 2008 #8 missinglinq Programmer Feb 9, 2002 1,914 US I agree, using the Change event and tDescrip.text is the best way to go here, but I just have to ask the burning question"Why?" The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat! Upvote 0 Downvote
I agree, using the Change event and tDescrip.text is the best way to go here, but I just have to ask the burning question"Why?" The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat!