VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



When you type in the textbox nothing appears but when you click the comments button the typed thing

by jay patel (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Thu 24th August 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

When you type in the textbox nothing appears but when you click the comments button the typed things will appear in the message box

API Declarations


Dim B As Integer
' add 2 textboxes of same size in a way that the user can see
only 1 i.e. one textbox will on other'
' write in properties of text2 textbox in the text properties "|"
' add 1 command button



Rate When you type in the textbox nothing appears but when you click the comments button the typed thing



MsgBox Text1.Text, vbSystemModal
Text1.SetFocus
End Sub


Private Sub Text1_Change()
Call textchng
End Sub

Public Sub textchng()
Text2.Text = " " + Text2.Text
LEN1 = Len(Text1.Text)
LEN2 = Len(Text2.Text)
If LEN1 < LEN2 Then
Text2.Text = ""
LEN2 = 0
Do While LEN2 < LEN1
Text2.Text = " " + Text2.Text
LEN2 = LEN2 + 1
Loop
Text2.Text = Text2.Text + "|"
Exit Sub
End If
'If Text2.Width = 3255 Then
'    b = Text2.Width
'    Text2.Width = b + 200
'End If
End Sub


Download this snippet    Add to My Saved Code

When you type in the textbox nothing appears but when you click the comments button the typed thing Comments

No comments have been posted about When you type in the textbox nothing appears but when you click the comments button the typed thing. Why not be the first to post a comment about When you type in the textbox nothing appears but when you click the comments button the typed thing.

Post your comment

Subject:
Message:
0/1000 characters