Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Private Declare Function SendMessageByVal Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const EM_LINESCROLL = &HB6
Private Sub cmdDown_Click()
LineScroll Text1, 0, 1
Text1.SetFocus
End Sub
Private Sub cmdUp_Click()
LineScroll Text1, 0, -1
Text1.SetFocus
End Sub
' Positive values scroll left and up, negative values scroll right and down.
Sub LineScroll(tb As TextBox, ByVal HorizScroll As Long, ByVal VertScroll As Long)
SendMessageByVal tb.hwnd, EM_LINESCROLL, HorizScroll, VertScroll
End Sub
Private Sub Form_Load()
Dim iX As Long
Dim iY As Long
Dim str As String
For iY = 0 To 75
str = str & iY & ". "
For iX = 65 To 90
str = str & Chr$(iX)
Next
str = str & vbCrLf
Next
Text1.Text = str
End Sub