|
-
Nov 7th, 1999, 02:35 AM
#1
Thread Starter
Hyperactive Member
DOes anyone know how to open a file when first you use commondialog control to open the open box and then select the file to be opened in a textbox. Thanks
Matt
-
Nov 7th, 1999, 03:09 AM
#2
New Member
-
Nov 7th, 1999, 03:22 AM
#3
Member
Loads a text file into a textbox:
Code:
Dim tempstr As String
CommonDialog.Filename = ""
CommonDialog.ShowOpen
If CommonDialog.Filename <> "" Then
Open "text.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, tempstr
TextBox.Text = Textbox.Text & vbCr & tempstr
Loop
Close
End If
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: [email protected]
ICQ#: 9872708
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|