Search results for query: *

  • Users: dd8
  • Order by date
  1. D

    how to remove a line return from IO.StreamReader a excel.csv data file

    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) dgImportedData.Rows.Clear() Do While Not objSR.EndOfStream...
  2. D

    Output & counters are inconsistent

    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 thanks again
  3. D

    Output & counters are inconsistent

    on line 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...
  4. D

    Output & counters are inconsistent

    Thanks jmcilhinney I get inconsistant behaviour if I debug & step through the code or if I run the application
  5. D

    Output & counters are inconsistent

    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
  6. D

    Output & counters are inconsistent

    Many thanks jmcilhinney
  7. D

    PrintDialog call the result the print dialog always displays/ hides behind the Windows Form

    Thanks again jmcilhinney, Ill checkout the link...
  8. D

    PrintDialog call the result the print dialog always displays/ hides behind the Windows Form

    Thanks jmcilhinney, do you have an example I can view
  9. D

    Output & counters are inconsistent

    Note Ive attached doc with code posted in above thread, f it makes it easier to read ...also if theres an easier way to write the code, as the original code including counters is hard to read TIA
  10. D

    Output & counters are inconsistent

    Ive inherited the following code Summary 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. The...
  11. D

    PrintDialog call the result the print dialog always displays/ hides behind the Windows Form

    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...
Back
Top