Click here to Skip to main content
15,886,026 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sending SMS Pin
Quiettao0o0o24-Feb-12 15:10
Quiettao0o0o24-Feb-12 15:10 
QuestionCombo box in List box Pin
Pasan14818-Feb-12 4:38
Pasan14818-Feb-12 4:38 
AnswerRe: Combo box in List box Pin
Dave Kreskowiak18-Feb-12 4:51
mveDave Kreskowiak18-Feb-12 4:51 
AnswerRe: Combo box in List box Pin
Eddy Vluggen18-Feb-12 7:31
professionalEddy Vluggen18-Feb-12 7:31 
GeneralRe: Combo box in List box Pin
ProEnggSoft18-Feb-12 15:47
ProEnggSoft18-Feb-12 15:47 
QuestionHow to copy a two-dimensional array of List(of integer) as value Pin
Alex Casals18-Feb-12 4:02
professionalAlex Casals18-Feb-12 4:02 
AnswerRe: How to copy a two-dimensional array of List(of integer) as value Pin
Luc Pattyn18-Feb-12 4:17
sitebuilderLuc Pattyn18-Feb-12 4:17 
AnswerRe: How to copy a two-dimensional array of List(of integer) as value Pin
Dave Kreskowiak18-Feb-12 4:31
mveDave Kreskowiak18-Feb-12 4:31 
Your code won't work because you're not making copies of the List(Of Integer) objects. Your code holds references to 12 seperate List(Of) objects, and when you use Array.Copy or Array.Clone, you are copying the references to those Lists, not the values in them. So, you now have two arrays with references to the same 12 Lists. Any changes you make in one array will be seen in the seconds array because they both point to the exact same objects.

' Setup source array of Lists.
Dim originalLists(3, 4) As List(Of Integer)

For i = 0 To 3
    For j = 0 To 4
        originalLists(i, j) = New List(Of Integer) From {1, 2, 3}
    Next
Next

' Now make copies of the original Lists.
Dim copyLists(3, 4) As List(Of Integer)

For i = 0 To 3
    For j = 0 To 4
        copyLists(i, j) = New List(Of Integer)
        copyLists(i, j).AddRange(originalLists(i, j))
    Next
Next


GeneralRe: How to copy a two-dimensional array of List(of integer) as value Pin
Alex Casals18-Feb-12 6:12
professionalAlex Casals18-Feb-12 6:12 
GeneralRe: How to copy a two-dimensional array of List(of integer) as value Pin
Dave Kreskowiak18-Feb-12 6:32
mveDave Kreskowiak18-Feb-12 6:32 
QuestionTree List Double Click Event Pin
Midnight Ahri17-Feb-12 16:16
Midnight Ahri17-Feb-12 16:16 
AnswerRe: Tree List Double Click Event Pin
Dave Kreskowiak17-Feb-12 17:16
mveDave Kreskowiak17-Feb-12 17:16 
AnswerRe: Tree List Double Click Event Pin
Eddy Vluggen18-Feb-12 2:41
professionalEddy Vluggen18-Feb-12 2:41 
AnswerRe: Tree List Double Click Event (new) Pin
ProEnggSoft18-Feb-12 16:30
ProEnggSoft18-Feb-12 16:30 
QuestionRe: Tree List Double Click Event (new) Pin
Midnight Ahri19-Feb-12 20:09
Midnight Ahri19-Feb-12 20:09 
AnswerRe: Tree List Double Click Event (new) Pin
ProEnggSoft19-Feb-12 20:38
ProEnggSoft19-Feb-12 20:38 
AnswerRe: Tree List Double Click Event (new) Pin
Midnight Ahri19-Feb-12 21:35
Midnight Ahri19-Feb-12 21:35 
AnswerRe: Tree List Double Click Event (new) Pin
ProEnggSoft19-Feb-12 21:55
ProEnggSoft19-Feb-12 21:55 
AnswerRe: Tree List Double Click Event (new) Pin
Midnight Ahri19-Feb-12 22:03
Midnight Ahri19-Feb-12 22:03 
GeneralRe: Tree List Double Click Event (new) Pin
ProEnggSoft19-Feb-12 22:09
ProEnggSoft19-Feb-12 22:09 
Questionhow to make slide puzzle game with VB 6.0 Pin
goteku17-Feb-12 2:38
goteku17-Feb-12 2:38 
AnswerRe: how to make slide puzzle game with VB 6.0 Pin
Simon_Whale17-Feb-12 3:14
Simon_Whale17-Feb-12 3:14 
AnswerRe: how to make slide puzzle game with VB 6.0 Pin
Dave Kreskowiak17-Feb-12 3:57
mveDave Kreskowiak17-Feb-12 3:57 
GeneralI used to love VB6 Pin
MacRaider417-Feb-12 2:24
MacRaider417-Feb-12 2:24 
AnswerRe: I used to love VB6 Pin
Midnight Ahri17-Feb-12 16:28
Midnight Ahri17-Feb-12 16:28 

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.