471,305 Members | 1,230 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Combobox Problems.

I have a class that stores my XML object to populate the combobox

Private Shared xmlDoc As XmlDocument

Public Shared Property Products() As XmlDocument
Get
If xmlDoc Is Nothing Then
Dim xmlFile As String = xmlLocation()
Dim xmlDoc As XmlDocument

xmlDoc = New XmlDocument
xmlDoc.Load(xmlFile)
End If

Return xmlDoc
End Get
Set(ByVal Value As XmlDocument)
xmlDoc = Value 'no real need to validate
End Set
End Property

here is my XMLdoc so far

<?xml version="1.0" encoding="utf-8" ?>

<products>
<!-- Repeat the structure below for each product. -->
<product>
<id>CP-90, T-32</id>
<company>Carwell</company>
<address>Street Address</address>
<city>City</city>
<state>State</state>
<zip>Zip</zip>
</product>

<!-- Next product here-->
</products>

I want to be able to read one item (id) into a combobox. BUT I want it to
"Refresh" in case the DOM tree has been updated. orginally, I put it in the
"LOAD" area of my VB app, but that wont work since I need the combobox to be
more dynamic.

Any ideas?

Thanks,

Michael

Jul 21 '05 #1
0 841

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Bill C. | last post: by
2 posts views Thread by John Tyce | last post: by
3 posts views Thread by TT (Tom Tempelaere) | last post: by
2 posts views Thread by SKarnis | last post: by
30 posts views Thread by dbuchanan | last post: by
reply views Thread by Frnak McKenney | last post: by
5 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.