PDA

Click to See Complete Forum and Search --> : I know how to open an EXE file but I don't know how to display it in a textbox???


rino_2
Dec 11th, 1999, 10:33 PM
Hi,

I posted a question not too lng ago on opening an EXE file but know I know. What I want to know now is how to display it into a textbox? I use this code to open it:

Open "C:\Windows\Calc.exe" for Binary Access Write As #1
'What code do I use to display it in text1???
Close #1

Can somebody please help me???

Thanks

smalig
Dec 12th, 1999, 11:03 AM
If you use Binary access you need use Get statement. For sample:

Dim s As String * 1

Open "C:\Windows\Calc.exe" For Binary Access Read As #1

While Not EOF(1)
Get #1, , s
Text1.Text = Text1.Text & s
Wend

Close #1

------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/