Click here to Skip to main content
15,900,108 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding User-Controlled Sound to Visual Basic .NET Pin
hpAng6-Jul-04 23:11
hpAng6-Jul-04 23:11 
Generalquery interface in VB??..... Pin
kunja_chan6-Jul-04 11:15
kunja_chan6-Jul-04 11:15 
GeneralRe: query interface in VB??..... Pin
beowulfagate6-Jul-04 13:52
beowulfagate6-Jul-04 13:52 
GeneralRe: query interface in VB??..... Pin
The Man from U.N.C.L.E.19-Jul-04 7:29
The Man from U.N.C.L.E.19-Jul-04 7:29 
GeneralDisplay Images Pin
Brad Fackrell6-Jul-04 8:43
Brad Fackrell6-Jul-04 8:43 
GeneralRe: Display Images Pin
beowulfagate6-Jul-04 13:49
beowulfagate6-Jul-04 13:49 
QuestionTwo listboxes on same form appear linked? Pin
drluggo6-Jul-04 3:20
drluggo6-Jul-04 3:20 
AnswerRe: Two listboxes on same form appear linked? Pin
Dave Kreskowiak6-Jul-04 4:24
mveDave Kreskowiak6-Jul-04 4:24 
What you did was bind ListBox1 to a datasource, then you cleared out that datasource and entered new information into it. So, yes, both istBoxes will have the same information behind them. The information from a datasource is not copied into the listbox, it is BOUND.

The solution is to create to diferent arrays and bind them to their respective listboxes.
'I'm assuming you Dim'd an ArrayList as arlAL...
Dim arlAL1 As New ArrayList()
Dim arlAL2 As New ArrayList()
 
xmlDoc.Load("../xml/BatchConfig.xml")
xmlNdList = xmlDoc.GetElementsByTagName("Unit")
For i = 0 To xmlNdList.Count - 1
    arlAL1.Add(xmlNdList.Item(i).Attributes("Id").Value)
Next
ListBox1.DataSource = arlAL1
 
xmlNdList = xmlDoc.GetElementsByTagName("Phase")
For i = 0 To xmlNdList.Count - 1
    arlAL2.Add(xmlNdList.Item(i).Attributes("Id").Value)
Next
ListBox2.DataSource = arlAL2



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralAccessing parallel port by using VB.Net Pin
marcus_gsh5-Jul-04 21:23
sussmarcus_gsh5-Jul-04 21:23 
GeneralRe: Accessing parallel port by using VB.Net Pin
Dave Kreskowiak6-Jul-04 2:54
mveDave Kreskowiak6-Jul-04 2:54 
GeneralRe: Accessing parallel port by using VB.Net Pin
marcus_gsh7-Jul-04 20:07
sussmarcus_gsh7-Jul-04 20:07 
GeneralMail program in VB6 Pin
Ravi S.V.5-Jul-04 19:34
Ravi S.V.5-Jul-04 19:34 
GeneralRe: Mail program in VB6 Pin
Hesham Amin5-Jul-04 22:12
Hesham Amin5-Jul-04 22:12 
GeneralQuestion for the VB guys Pin
#realJSOP5-Jul-04 15:55
professional#realJSOP5-Jul-04 15:55 
QuestionProblems in VB.net? Pin
mythinky5-Jul-04 15:39
mythinky5-Jul-04 15:39 
AnswerRe: Problems in VB.net? Pin
Colin Angus Mackay6-Jul-04 1:00
Colin Angus Mackay6-Jul-04 1:00 
AnswerRe: Problems in VB.net? Pin
Dave Kreskowiak6-Jul-04 3:10
mveDave Kreskowiak6-Jul-04 3:10 
AnswerRe: Problems in VB.net? Pin
Martin Dionne14-Jul-04 12:07
Martin Dionne14-Jul-04 12:07 
QuestionHow does Unload works exactly? Pin
jlopezpenalba5-Jul-04 5:18
jlopezpenalba5-Jul-04 5:18 
AnswerRe: How does Unload works exactly? Pin
beowulfagate5-Jul-04 14:01
beowulfagate5-Jul-04 14:01 
GeneralRe: How does Unload works exactly? Pin
jlopezpenalba5-Jul-04 21:11
jlopezpenalba5-Jul-04 21:11 
AnswerRe: How does Unload works exactly? Pin
Dave Kreskowiak6-Jul-04 3:24
mveDave Kreskowiak6-Jul-04 3:24 
GeneralSocket Listener To A USB Bluetooth Connected To PC Pin
hani_aql5-Jul-04 3:33
hani_aql5-Jul-04 3:33 
GeneralINSERT Fails Pin
Anonymous5-Jul-04 1:52
Anonymous5-Jul-04 1:52 
GeneralRe: INSERT Fails Pin
Hesham Amin5-Jul-04 4:56
Hesham Amin5-Jul-04 4:56 

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.