Results 1 to 3 of 3

Thread: opening files

  1. #1

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    How can you set a file association so that when you open it:
    It is opened into a text1 or such?
    retired member. Thanks for everything

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496

    is this??

    is this what your looking for??

    Code:
    Private Sub Command2_Click()
    Dim i As Integer
    Dim strFile As String
    
    Open "a:Coffee.dat" For Input As #1
    Do Until EOF(1)
        Input #1, strFile
        Text1(i) = strFile
        i = i + 1
    Loop
    End Sub

  3. #3

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    i mean like in vb, you double click on a project file and it opens the file in vb on the main screen instead of just opening vb and not putting the project on the main screen. Is there a way to say:
    Code:
    Form1_Load(FileName As String)
    If FileName <> "" Then
    Open FileName in Text1.Text
    End If
    End Sub
    retired member. Thanks for everything

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