Click here to Skip to main content
15,921,840 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Sergio2santos12-Dec-07 17:45
Sergio2santos12-Dec-07 17:45 
QuestionQuicktime & VB.Net! Pin
Sorikan8-Dec-07 14:07
Sorikan8-Dec-07 14:07 
GeneralRe: Quicktime & VB.Net! Pin
Dave Kreskowiak8-Dec-07 17:10
mveDave Kreskowiak8-Dec-07 17:10 
GeneralRe: Quicktime & VB.Net! Pin
Sorikan8-Dec-07 17:33
Sorikan8-Dec-07 17:33 
GeneralRe: Quicktime & VB.Net! Pin
Christian Graus8-Dec-07 22:38
protectorChristian Graus8-Dec-07 22:38 
GeneralRe: Quicktime & VB.Net! Pin
Sorikan9-Dec-07 9:57
Sorikan9-Dec-07 9:57 
GeneralRe: Quicktime & VB.Net! Pin
Dave Kreskowiak10-Dec-07 2:10
mveDave Kreskowiak10-Dec-07 2:10 
Generaltext file Pin
bapu28898-Dec-07 8:16
bapu28898-Dec-07 8:16 
Hello every one

I am new in vb.net and i am working on my assignment about add customer's data in to text file so i have used data writer to write data in to file now i want to add customer's name in to combo box so i have used data reader it's working but i dont want all the customer's details i just want customer's name in combo box

this is the code for write data

'create stream writer to add data in to text tile<br />
    Private Sub AddDataInFile()<br />
        Dim DataWriter As New System.IO.StreamWriter(MyFile, True)<br />
        'get data to variable<br />
        Title = Trim(cboTitle.SelectedItem.ToString)<br />
        FName = Trim(txtName.Text)<br />
        MName = Trim(txtMName.Text)<br />
        SName = Trim(txtSurname.Text)<br />
        Age = Trim(txtAge.Text)<br />
        'write data to file<br />
        DataWriter.WriteLine(Title + FName + MName + SName + Age)<br />
        DataWriter.Close()<br />
    End Sub


and this is for read data from text file

Private Sub AddDataInCombo()<br />
        'get all the name in combo box<br />
        Dim TempData As String<br />
        cboMyList.Items.Clear()<br />
        If System.IO.File.Exists(MyFile) = True Then<br />
            Dim DataReader As New System.IO.StreamReader(MyFile)<br />
            Do While DataReader.Peek <> -1<br />
                TempData = Trim(DataReader.ReadLine())<br />
                cboMyList.Items.Add(TempData)<br />
            Loop<br />
            DataReader.Close()<br />
        End If<br />
    End Sub


i dont want to display age in to combo box just name only, I want to use this name for search so next thing is how to search from name ????Confused | :confused:

any help Cry | :((

waiting for your kind rep.

thanks
GeneralRe: text file Pin
Christian Graus8-Dec-07 9:21
protectorChristian Graus8-Dec-07 9:21 
GeneralMPEG encryption Pin
zeeshi_247-Dec-07 23:31
zeeshi_247-Dec-07 23:31 
GeneralRe: MPEG encryption Pin
Christian Graus7-Dec-07 23:46
protectorChristian Graus7-Dec-07 23:46 
GeneralAbout TabPane Pin
Meenge7-Dec-07 23:02
Meenge7-Dec-07 23:02 
GeneralRe: About TabPane Pin
pmarfleet7-Dec-07 23:43
pmarfleet7-Dec-07 23:43 
GeneralRe: About TabPane Pin
Paul Conrad9-Dec-07 8:57
professionalPaul Conrad9-Dec-07 8:57 
GeneralRe: About TabPane Pin
John_Adams9-Dec-07 23:46
John_Adams9-Dec-07 23:46 
QuestionHow many records afected by this code Pin
Vimalsoft(Pty) Ltd7-Dec-07 22:45
professionalVimalsoft(Pty) Ltd7-Dec-07 22:45 
AnswerRe: How many records afected by this code Pin
pmarfleet7-Dec-07 23:40
pmarfleet7-Dec-07 23:40 
AnswerRe: How many records afected by this code Pin
Vimalsoft(Pty) Ltd8-Dec-07 1:25
professionalVimalsoft(Pty) Ltd8-Dec-07 1:25 
GeneralError handling in TAPI3.0 by vb.net Pin
Sumit Prakash Sharma7-Dec-07 19:56
professionalSumit Prakash Sharma7-Dec-07 19:56 
GeneralRe: Error handling in TAPI3.0 by vb.net Pin
Dave Kreskowiak8-Dec-07 4:18
mveDave Kreskowiak8-Dec-07 4:18 
GeneralRe: Error handling in TAPI3.0 by vb.net Pin
Paul Conrad9-Dec-07 9:00
professionalPaul Conrad9-Dec-07 9:00 
GeneralRe: Error handling in TAPI3.0 by vb.net Pin
Paul Conrad9-Dec-07 8:58
professionalPaul Conrad9-Dec-07 8:58 
Generalfra tab Pin
Meenge7-Dec-07 18:13
Meenge7-Dec-07 18:13 
GeneralRe: fra tab Pin
Ray Cassick7-Dec-07 20:16
Ray Cassick7-Dec-07 20:16 
GeneralRe: fra tab Pin
Meenge7-Dec-07 23:19
Meenge7-Dec-07 23:19 

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.