Re: populating cboBox using txtFile
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 06/05/04
- Next message: Herfried K. Wagner [MVP]: "Re: Help with Structure conversion to VB.NET"
- Previous message: stelicovits stelicovits: "Re: Modal / Parent forms VB.net"
- In reply to: Shannon D via .NET 247: "populating cboBox using txtFile"
- Next in thread: Cor Ligthert: "Re: populating cboBox using txtFile"
- Reply: Cor Ligthert: "Re: populating cboBox using txtFile"
- Messages sorted by: [ date ] [ thread ]
Date: 05 Jun 2004 21:59:32 +0200
* Shannon D via .NET 247 <anonymous@dotnet247.com> scripsit:
> Hi, I am havent been programming for very long and I have run into a
> bit of a snag! I am working on a form in VB.Net that the user inputs
> data and the information is saved to a text file which can also be
> reopened... How do you take information from a textfile and display it
> in a combobox? and can you populate the DateTimePicker?
Reading a text file line-by-line:
\\\
Imports System.IO
.
.
.
Dim sr As StreamReader = _
New StreamReader("C:\WINDOWS\WIN.INI")
Do While sr.Peek > -1
Me.ComboBox1.Items.Add(sr.ReadLine())
Loop
sr.Close()
///
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
- Next message: Herfried K. Wagner [MVP]: "Re: Help with Structure conversion to VB.NET"
- Previous message: stelicovits stelicovits: "Re: Modal / Parent forms VB.net"
- In reply to: Shannon D via .NET 247: "populating cboBox using txtFile"
- Next in thread: Cor Ligthert: "Re: populating cboBox using txtFile"
- Reply: Cor Ligthert: "Re: populating cboBox using txtFile"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|