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

Visual Basic

 
GeneralRe: Adding a new row in a DataGrid Pin
dptalt18-Nov-05 2:24
dptalt18-Nov-05 2:24 
GeneralRe: Adding a new row in a DataGrid Pin
Asim N.29-Nov-05 23:35
Asim N.29-Nov-05 23:35 
QuestionPopulating a combobox from an XML file Pin
stevenho17-Nov-05 13:31
stevenho17-Nov-05 13:31 
AnswerRe: Populating a combobox from an XML file Pin
KaptinKrunch17-Nov-05 14:01
KaptinKrunch17-Nov-05 14:01 
QuestionTrying to search a string in a text file and then read the chars after that string Pin
kongo1017-Nov-05 13:26
kongo1017-Nov-05 13:26 
AnswerRe: Trying to search a string in a text file and then read the chars after that string Pin
Steve Pullan17-Nov-05 13:53
Steve Pullan17-Nov-05 13:53 
GeneralRe: Trying to search a string in a text file and then read the chars after that string Pin
kongo1017-Nov-05 16:16
kongo1017-Nov-05 16:16 
GeneralRe: Trying to search a string in a text file and then read the chars after that string Pin
Steve Pullan17-Nov-05 16:56
Steve Pullan17-Nov-05 16:56 
kongo10 wrote:
That worked great thanks!


You're welcome.

kongo10 wrote:
Is there a way to point the cursor to a specific part of the text file? like if I wanted to only read lines 7-30 of the text file? or even from a specific word in the text which is basically a title to the block of text


Hmmm.... how large is the file? In the VB 6.0 way you could call the kernel GetPrivateProfileString() INI file function and it's supporting functions to go to the requested section and obtain the value automatically (almost) but in .NET this is shunned in favour of using XML files.

These subjects are a little harder to put into a few words here, so I'd suggest searching the net (or www.codeproject.com articles) for suitable code.

Another suggestion is that if the file is relatively small and/or only going to be read all the way through once in your program is to simply read the file line-by-line until you get to where you want to start then parse the data as per previous reply in this thread. Much simpler although not quite as 'correct'.

...Steve
QuestionMS ACCESS - VBA Pin
GM9917-Nov-05 6:24
GM9917-Nov-05 6:24 
AnswerRe: MS ACCESS - VBA Pin
jasonbullard17-Nov-05 15:39
jasonbullard17-Nov-05 15:39 
GeneralRe: MS ACCESS - VBA Pin
GM9921-Nov-05 4:51
GM9921-Nov-05 4:51 
QuestionTCP/ Thread/ Timer Pin
Brent Lamborn17-Nov-05 5:46
Brent Lamborn17-Nov-05 5:46 
Questionconverting string to date Pin
microuser_200016-Nov-05 22:08
microuser_200016-Nov-05 22:08 
AnswerRe: converting string to date Pin
eagertolearn17-Nov-05 5:52
eagertolearn17-Nov-05 5:52 
QuestionHindi in VB.net Pin
abhinish16-Nov-05 18:33
abhinish16-Nov-05 18:33 
QuestionReferencing a TextBox in a DataGrid Pin
dptalt16-Nov-05 12:32
dptalt16-Nov-05 12:32 
QuestionUpdating dataset, very slow compared to Foxpro ? Pin
snoopdog10116-Nov-05 10:13
snoopdog10116-Nov-05 10:13 
AnswerRe: Updating dataset, very slow compared to Foxpro ? Pin
dptalt16-Nov-05 12:46
dptalt16-Nov-05 12:46 
GeneralRe: Updating dataset, very slow compared to Foxpro ? Pin
snoopdog10117-Nov-05 7:08
snoopdog10117-Nov-05 7:08 
GeneralRe: Updating dataset, very slow compared to Foxpro ? Pin
dptalt18-Nov-05 2:31
dptalt18-Nov-05 2:31 
QuestionRich Text box Focus Pin
Gerald Manickam16-Nov-05 3:11
Gerald Manickam16-Nov-05 3:11 
QuestionHow to get height , width in pixel of screen in VB net Pin
dinhnq15-Nov-05 21:31
dinhnq15-Nov-05 21:31 
AnswerRe: How to get height , width in pixel of screen in VB net Pin
Mazitan16-Nov-05 2:59
Mazitan16-Nov-05 2:59 
QuestionCOM and DCOM in VB Pin
Paritos15-Nov-05 20:55
Paritos15-Nov-05 20:55 
AnswerRe: COM and DCOM in VB Pin
Christian Graus17-Nov-05 17:35
protectorChristian Graus17-Nov-05 17:35 

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.