Advertisement
1_2002 Coding Standards #110943

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

Tóm tắt bởi AI: 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.

Mã nguồn
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.
Bình luận gốc (3)
Được khôi phục từ Wayback Machine