Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to disable automatic stop on window service ? Pin
David Skelly24-Nov-09 22:50
David Skelly24-Nov-09 22:50 
AnswerRe: How to disable automatic stop on window service ? Pin
Shameel24-Nov-09 23:27
professionalShameel24-Nov-09 23:27 
QuestionReportviewer stoped working... [modified] - Solved 11/25/2009 Pin
alexvw24-Nov-09 14:22
alexvw24-Nov-09 14:22 
AnswerRe: Reportviewer stoped working... Pin
Johan Hakkesteegt24-Nov-09 23:27
Johan Hakkesteegt24-Nov-09 23:27 
GeneralRe: Reportviewer stoped working... Pin
alexvw25-Nov-09 11:49
alexvw25-Nov-09 11:49 
QuestionMy VB6 sucks - what is this? Array("hello") Pin
gvanto24-Nov-09 14:04
gvanto24-Nov-09 14:04 
AnswerRe: My VB6 sucks - what is this? Array("hello") Pin
Johan Hakkesteegt24-Nov-09 21:50
Johan Hakkesteegt24-Nov-09 21:50 
AnswerRe: My VB6 sucks - what is this? Array("hello") Pin
Shameel24-Nov-09 23:30
professionalShameel24-Nov-09 23:30 
AnswerRe: My VB6 sucks - what is this? Array("hello") Pin
Dave Doknjas25-Nov-09 11:15
Dave Doknjas25-Nov-09 11:15 
Questiontextbox tab highlight text Pin
PAguilar0924-Nov-09 12:52
PAguilar0924-Nov-09 12:52 
AnswerRe: textbox tab highlight text Pin
Luc Pattyn24-Nov-09 13:48
sitebuilderLuc Pattyn24-Nov-09 13:48 
GeneralRe: textbox tab highlight text Pin
PAguilar0924-Nov-09 14:04
PAguilar0924-Nov-09 14:04 
GeneralRe: textbox tab highlight text Pin
Luc Pattyn24-Nov-09 14:42
sitebuilderLuc Pattyn24-Nov-09 14:42 
Questionmodify a Variable in a specific line in a text file Pin
IvanIT24-Nov-09 7:14
IvanIT24-Nov-09 7:14 
AnswerRe: modify a Variable in a specific line in a text file Pin
Dave Kreskowiak24-Nov-09 7:25
mveDave Kreskowiak24-Nov-09 7:25 
GeneralRe: modify a Variable in a specific line in a text file Pin
EliottA24-Nov-09 7:56
EliottA24-Nov-09 7:56 
GeneralRe: modify a Variable in a specific line in a text file Pin
Dave Kreskowiak24-Nov-09 9:40
mveDave Kreskowiak24-Nov-09 9:40 
AnswerRe: modify a Variable in a specific line in a text file Pin
Luc Pattyn24-Nov-09 10:39
sitebuilderLuc Pattyn24-Nov-09 10:39 
GeneralRe: modify a Variable in a specific line in a text file [modified] Pin
IvanIT25-Nov-09 3:30
IvanIT25-Nov-09 3:30 
GeneralRe: modify a Variable in a specific line in a text file Pin
IvanIT25-Nov-09 6:26
IvanIT25-Nov-09 6:26 
GeneralRe: modify a Variable in a specific line in a text file Pin
Luc Pattyn25-Nov-09 6:28
sitebuilderLuc Pattyn25-Nov-09 6:28 
GeneralRe: modify a Variable in a specific line in a text file Pin
IvanIT30-Nov-09 5:24
IvanIT30-Nov-09 5:24 
Luc, I am a little slow, but I am getting there! lol! the code below gives desired result.

lblNumTrans.Text = frmMain.transLoop<br />
<br />
        Dim myFile As New System.IO.StreamReader(frmMain.lblClaimsFile.Text)<br />
        Dim strTextArray() As String = {}<br />
        Dim intIndex As Integer = 0<br />
<br />
        Do Until myFile.EndOfStream = True<br />
            ReDim Preserve strTextArray(intIndex)<br />
            strTextArray(intIndex) = myFile.ReadLine()<br />
            intIndex += 1<br />
        Loop<br />
<br />
        'read the 3rd line from bottom of file?<br />
        For i As Integer = 0 To strTextArray.Length - 3<br />
<br />
            txtSEloop.Text = strTextArray(i)<br />
<br />
        Next


The last piece I have not yet figured out is how to save what is displayed in my textbox back to the original text file. My issue is that I have the file open for reading. Any help? thanks
GeneralRe: modify a Variable in a specific line in a text file Pin
Luc Pattyn30-Nov-09 5:38
sitebuilderLuc Pattyn30-Nov-09 5:38 
QuestionErasing GraphicsPath Pin
O.G.I.24-Nov-09 4:26
O.G.I.24-Nov-09 4:26 
AnswerRe: Erasing GraphicsPath Pin
Dave Kreskowiak24-Nov-09 7:24
mveDave Kreskowiak24-Nov-09 7:24 

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.