Click here to Skip to main content
15,911,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: No console output vs2008 Pin
Luc Pattyn19-Dec-09 4:52
sitebuilderLuc Pattyn19-Dec-09 4:52 
GeneralRe: No console output vs2008 Pin
cstrader23219-Dec-09 5:03
cstrader23219-Dec-09 5:03 
GeneralRe: No console output vs2008 Pin
Luc Pattyn19-Dec-09 5:45
sitebuilderLuc Pattyn19-Dec-09 5:45 
Questionextracting unicode text from pdf Pin
programmi.kito@gmail.com18-Dec-09 19:36
programmi.kito@gmail.com18-Dec-09 19:36 
AnswerRe: extracting unicode text from pdf Pin
gilbertmom11-Jun-10 20:44
gilbertmom11-Jun-10 20:44 
QuestionVB 2008!! Error arise from a Sub although This sub isn't called!!!! Why? Pin
tannghia18-Dec-09 16:35
tannghia18-Dec-09 16:35 
AnswerRe: VB 2008!! Error arise from a Sub although This sub isn't called!!!! Why? Pin
Dave Kreskowiak18-Dec-09 17:34
mveDave Kreskowiak18-Dec-09 17:34 
QuestionVB6 help Pin
offroaderdan18-Dec-09 5:44
offroaderdan18-Dec-09 5:44 
Hi,

I am trying to read a .txt file in vb6,

i have the following code
Private Sub Command1_Click()

' Get a free file number
nFileNum = FreeFile

' Open a text file for input. inputbox returns the path to read the file
Open "C:\Documents and Settings\Sudeep\My Documents\3.txt" For Input As nFileNum
lLineCount = 1
' Read the contents of the file
Do While Not EOF(nFileNum)
   Line Input #nFileNum, sNextLine
   'do something with it
   'add line numbers to it, in this case!
   sNextLine = sNextLine & vbCrLf
   sText = sText & sNextLine

Loop
Text1.Text = sText

' Close the file
Close nFileNum

End Sub


this works however i seem to be missing one little thing.
I want to make the contents held in the .txt file to go on the text box horizontally. At the moment all the text seems to be in one massive line.

I have tried adding vbnewline, however that doesn't seem to do much, so i have resorted to some expert help.

Many thanks

Dan
AnswerRe: VB6 help Pin
Ian Shlasko18-Dec-09 6:00
Ian Shlasko18-Dec-09 6:00 
AnswerRe: VB6 help Pin
Luc Pattyn18-Dec-09 6:01
sitebuilderLuc Pattyn18-Dec-09 6:01 
GeneralRe: VB6 help Pin
offroaderdan18-Dec-09 6:11
offroaderdan18-Dec-09 6:11 
QuestionUPDATE Dataset ? Pin
cotdot1111118-Dec-09 2:11
cotdot1111118-Dec-09 2:11 
AnswerRe: UPDATE Dataset ? Pin
Dave Kreskowiak18-Dec-09 3:36
mveDave Kreskowiak18-Dec-09 3:36 
AnswerRe: UPDATE Dataset ? Pin
Vimalsoft(Pty) Ltd22-Dec-09 2:40
professionalVimalsoft(Pty) Ltd22-Dec-09 2:40 
GeneralProject on College management systems [modified] Pin
Renuka.A17-Dec-09 20:46
Renuka.A17-Dec-09 20:46 
GeneralRe: Project on College management systems Pin
darkelv17-Dec-09 22:54
darkelv17-Dec-09 22:54 
GeneralRe: Project on College management systems Pin
Mycroft Holmes17-Dec-09 23:22
professionalMycroft Holmes17-Dec-09 23:22 
GeneralRe: Project on College management systems Pin
Ashfield18-Dec-09 1:17
Ashfield18-Dec-09 1:17 
AnswerRe: Project on College management systems Pin
DJ Matthews18-Dec-09 2:17
DJ Matthews18-Dec-09 2:17 
GeneralRe: Project on College management systems Pin
Dave Kreskowiak18-Dec-09 2:24
mveDave Kreskowiak18-Dec-09 2:24 
GeneralRe: Project on College management systems Pin
Steven J Jowett18-Dec-09 3:57
Steven J Jowett18-Dec-09 3:57 
GeneralRe: Project on College management systems Pin
Christian Graus18-Dec-09 19:13
protectorChristian Graus18-Dec-09 19:13 
GeneralRe: Project on College management systems Pin
#realJSOP22-Dec-09 4:13
professional#realJSOP22-Dec-09 4:13 
QuestionHelp with the dwmapi. Pin
Member 436831617-Dec-09 9:03
Member 436831617-Dec-09 9:03 
QuestionImplement Undo method Pin
Pasan14817-Dec-09 5:54
Pasan14817-Dec-09 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.