The code reads data from an excel.csv file
If a row cell contains data with a line return ie Alt+Enter
The result is the code reads it’s as a new Line, and therefore errors.
Dim objSR As New IO.StreamReader(objOFD.FileName)
Do While Not objSR.EndOfStream...
thanks, yes I know that lists and collections and indexes are zero based...
I'm wondering why the original developer would get a (total count then minus 1)
and later in the code add one to the count
the developer left, so Ive inherited the codes and unknown reasons of the code
The total Data.RowCount is actually 9 records
For i As Integer = 0 To dgImportedData.Rows.Count - 1
with the code dgImportedData.Rows.Count - 1
The total Data.RowCount is now 8 records.
Im not sure why the previous developer did the minus - 1
If I change the code to...
Why wouild the counters not being consistant,
When I run the code one time, it prints all except the last record
If I re-run the code again, the results are prints all records correctly ie including the last record
Ive inherited the following code
WinForms displays a list of users that have attended a course
Students either passed (X) or failed (Y) a course.
It prints a document list of all students that completed the course
It prints certificates for students that passed the course.
ve inherited a code application.
When I either run the exe or debug the code the result is
The print dialog box is called.
However the Print dialog always displays behind/ (appears as hidden or doesnt display) the Window Form.
How can I get the Print dialog to be the main focus, current active...