Advertisement
2002ASP Coding Standards #6981

Write text in a label at run-time

With this simple code you can type text into a label at run-time. A rather smart idea I think.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
'This writes to a label if the form is in "focus"
Private Sub Form_KeyPress(KeyAscii As Integer)
label = label & Chr$(KeyAscii)
End Sub
' You need to make some changes for backspace to work. The key nr for backspace is 8.
Original Comments (3)
Recovered from Wayback Machine