Results 1 to 2 of 2

Thread: I know how to open an EXE file but I don't know how to display it in a textbox???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    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

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    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
    [email protected]
    http://vbcode.webhostme.com/


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width