Click here to Skip to main content
15,907,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Which event run when Winform be closed? Pin
Christian Graus11-Jul-05 18:53
protectorChristian Graus11-Jul-05 18:53 
GeneralRe: Which event run when Winform be closed? Pin
rushing11-Jul-05 22:25
rushing11-Jul-05 22:25 
GeneralRe: Which event run when Winform be closed? Pin
Dave Kreskowiak12-Jul-05 1:19
mveDave Kreskowiak12-Jul-05 1:19 
GeneralRe: Which event run when Winform be closed? Pin
Christian Graus12-Jul-05 13:18
protectorChristian Graus12-Jul-05 13:18 
GeneralHELP NEEDED!!! Pin
dd8611-Jul-05 14:56
dd8611-Jul-05 14:56 
GeneralRe: HELP NEEDED!!! Pin
Michael Haephrati23-Aug-13 12:23
professionalMichael Haephrati23-Aug-13 12:23 
GeneralConnectivity Pin
rushfel11-Jul-05 14:39
rushfel11-Jul-05 14:39 
Generalreadline method Pin
eagertolearn11-Jul-05 13:41
eagertolearn11-Jul-05 13:41 
hello, I need help on the readline method.
I am working on a project that requires me to read from a textfile and import it to an excel worksheet.
I have a problem reading from the textfile. Can someone help me on this matter.

my code looks similar to this:

dim str as string = ""
dim fr as new streamreader(filename)
do
str = fr.readline
str = str.substring(22,6)
loop until fr.peek<0

I've got a problem when using the substring method.
I need to get the information on that spesific location, but I got an error msg saying that my index and length is out of bounds.
But When I check on my original file, the line has enough length and index.
This is an example:
original file:
"I have a problem with readline method"
But my str:
"I have a proble"
This only happens to some of the lines in the file. I wonder why that is.
Someone please help :p

Thank You
GeneralRe: readline method Pin
KaptinKrunch11-Jul-05 15:41
KaptinKrunch11-Jul-05 15:41 
Generalputing a string into array ! Pin
raed_aw11-Jul-05 5:23
raed_aw11-Jul-05 5:23 
GeneralRe: puting a string into array ! Pin
KRathor11-Jul-05 6:23
KRathor11-Jul-05 6:23 
GeneralRe: puting a string into array ! Pin
Anonymous11-Jul-05 8:53
Anonymous11-Jul-05 8:53 
GeneralTextbox Pin
JimClark6811-Jul-05 4:50
JimClark6811-Jul-05 4:50 
GeneralRe: Textbox Pin
Anonymous11-Jul-05 9:01
Anonymous11-Jul-05 9:01 
GeneralDirectX overlays Pin
Anonymous11-Jul-05 3:40
Anonymous11-Jul-05 3:40 
GeneralODBC Configuration Dialog Pin
va_muwanga11-Jul-05 3:02
va_muwanga11-Jul-05 3:02 
GeneralRe: ODBC Configuration Dialog Pin
Rizwan Bashir11-Jul-05 22:59
Rizwan Bashir11-Jul-05 22:59 
Generalremote desktop Pin
Reinhard Taucher11-Jul-05 2:46
Reinhard Taucher11-Jul-05 2:46 
GeneralRe: remote desktop Pin
Colin Angus Mackay11-Jul-05 9:02
Colin Angus Mackay11-Jul-05 9:02 
GeneralRe: remote desktop Pin
Anonymous11-Jul-05 9:06
Anonymous11-Jul-05 9:06 
GeneralUsing .NET User Control in a VB6 Form Pin
Isaac Garcia11-Jul-05 0:27
Isaac Garcia11-Jul-05 0:27 
GeneralDisplaying Wave Signals Pin
Veera Raghavendra11-Jul-05 0:03
Veera Raghavendra11-Jul-05 0:03 
GeneralRe: Displaying Wave Signals Pin
Anonymous11-Jul-05 9:10
Anonymous11-Jul-05 9:10 
GeneralRe: Displaying Wave Signals Pin
Veera Raghavendra11-Jul-05 19:03
Veera Raghavendra11-Jul-05 19:03 
GeneralCustom Draw ListView Pin
Anonymous10-Jul-05 21:11
Anonymous10-Jul-05 21:11 

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.