From: John Meyer on
The console code is working just fine, but it isn't putting in the text
boxes.

P.S I'm using a while loop, but I'm only expecting one answer but I
haven't found a good way to process one record.

Private Sub btnFindByISBN_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnFindByISBN.Click
Dim strSearchString As String

strSearchString = "http://isbndb.com/api/books.xml?access_key="
& "CYGCL3GT" & "&index1=isbn&value1=" & Me.txtISBN.Text



Dim reader As XmlTextReader = New XmlTextReader(strSearchString)
Do While (reader.Read())
Console.WriteLine(reader.Name)
Console.WriteLine(reader.Value)

Select Case reader.Name
Case "Title"
Me.txtTitle.Text = reader.Value
Case "AuthorsText"
Me.txtAuthors.Text = reader.Value
End Select
Loop




End Sub

Visual Basic.NET 2008
From: Mike Williams on
"John Meyer"
<johnremovetehpolkadottoemailatpueblonativedotcom(a)removethis.com> wrote in
message news:eakfYyK3IHA.2424(a)TK2MSFTNGP04.phx.gbl...

> The console code is working just fine, but it isn't putting in the
> text boxes. P.S I'm using a while loop, but I'm only expecting
> one answer but I haven't found a good way to process one record.
> Private Sub btnFindByISBN_Click(ByVal sender As System.Object

You're in the wrong newsgroup, John. This group is for the real Visual
Basic, of which the latest version is VB6, whereas you appear to be using
vb.net or whatever they are currently calling it, which is quite different.
In almost all cases VB6 code will not work in vb.net. Luckily, even though
the Micro$oft salesmen have not yet been honest enough to admit the
differences, their technical support people seem to have done so because
they have created a completely separate newsgroup for their completely
different product. Check it out at:

microsoft.public.dotnet.languages.vb

Mike