1 Replies - 632 Views - Last Post: 26 January 2013 - 07:50 AM Rate Topic: -----

#1 CesarAz28  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-January 13

Cancellation Coding

Posted 26 January 2013 - 07:38 AM

I need support to sort out the error as I am unable to read and write a two different text file into two text boxes, combo box for Surname and the label for price.Also looked for help in many ways and this is my code.
Dim BookedFile As System.IO.StreamReader
        BookedFile = IO.File.OpenText("G:\Starshine Amateur Dramatic Society\SADs Document\Booked_File4thOct.txt")
        Do While BookedFile.Peek <> -1
            Dim SurnameLine As String = BookedFile.ReadLine()
            cmboboxSName.Items.Add(SurnameLine)

This post has been edited by Atli: 26 January 2013 - 07:42 AM
Reason for edit:: Fixed the [code] tags.


Is This A Good Question/Topic? 0
  • +

Replies To: Cancellation Coding

#2 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3817
  • View blog
  • Posts: 13,532
  • Joined: 12-December 12

Re: Cancellation Coding

Posted 26 January 2013 - 07:50 AM

Your posted code doesn't relate to your question. You are not opening two files, or attempting to write to textboxes or a label

It also omits the closing Loop (and any code in between).

Post the code relevant to the problem that you are having.

This post has been edited by andrewsw: 26 January 2013 - 07:51 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1