Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" _
(ByVal hWnd As Long, ByVal MSG As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const EM_SETREADONLY = &HCF
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Load()
Dim txt, temp
Call SendMessage(Me.Text1.hWnd, EM_SETREADONLY, 0, 0)
Open "Readme.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, temp
If Not (EOF(1)) Then txt = txt & vbCrLf
txt = txt & temp
Loop
Close
Me.Text1.Text = txt
End Sub |