plain black box</a><br>"For most users of personal computers, the single-user, single task restrictions are of no consequence. Personal computers work just fine with one console."<br>
<b><u>CP/M and the Personal Computer</u></b>[/sig]
Hi, i think you cannot probably restrict the user to type and as well not allow him to erase what you have already in it. on the other hand what you can do is in the validate event you can just append your line of text after the user has entered his text. You can do this one like this ;
Assuming your text is in some string variable and the multiline property for the text box has to be true in the scenario...
In text1_validate event :
text1.text = stryourstring & text1.text
Hope this would help you. If it isnt sorry for wasting your time i have no other idea...all the best...vijay [sig][/sig]
Okay, how about this... try as they might, the users will not be able to delete or change your message (only add to the contents of the text box):
[tt]
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Mess$ = "This is my message!"
Temp$ = Text1.Text
If Len(Temp$) < Len(Mess$) Then
Text1.Text = Mess$
Exit Sub
End If
For R = 1 To Len(Mess$)
If Mid$(Temp$, R, 1) <> Mid$(Mess$, R, 1) Then
typo = True
Mid$(Temp$, R, 1) = Mid$(Mess$, R, 1)
End If
Next
If typo = True Then Text1.Text = Temp$
End Sub
[/tt] [sig]<p> <br><a href=mailto: > </a><br><a href=
plain black box</a><br>"For most users of personal computers, the single-user, single task restrictions are of no consequence. Personal computers work just fine with one console."<br>
<b><u>CP/M and the Personal Computer</u></b>[/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.