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

Visual Basic

 
Questionpassing value from popup to column gridview Pin
C#Coudou20-Feb-12 22:49
C#Coudou20-Feb-12 22:49 
QuestionLoad Connection String from a File Pin
Midnight Ahri20-Feb-12 16:14
Midnight Ahri20-Feb-12 16:14 
AnswerRe: Load Connection String from a File Pin
Luc Pattyn20-Feb-12 16:26
sitebuilderLuc Pattyn20-Feb-12 16:26 
AnswerRe: Load Connection String from a File Pin
Midnight Ahri20-Feb-12 17:12
Midnight Ahri20-Feb-12 17:12 
AnswerRe: Load Connection String from a File Pin
Luc Pattyn20-Feb-12 17:21
sitebuilderLuc Pattyn20-Feb-12 17:21 
AnswerRe: Load Connection String from a File Pin
Simon_Whale21-Feb-12 0:45
Simon_Whale21-Feb-12 0:45 
QuestionRe: Load Connection String from a File Pin
Midnight Ahri21-Feb-12 14:02
Midnight Ahri21-Feb-12 14:02 
AnswerRe: Load Connection String from a File Pin
Luc Pattyn21-Feb-12 14:17
sitebuilderLuc Pattyn21-Feb-12 14:17 
QuestionSending SMS Pin
Pasan14820-Feb-12 7:13
Pasan14820-Feb-12 7:13 
AnswerRe: Sending SMS Pin
Luc Pattyn20-Feb-12 8:11
sitebuilderLuc Pattyn20-Feb-12 8:11 
GeneralRe: Sending SMS Pin
Pasan14820-Feb-12 8:22
Pasan14820-Feb-12 8:22 
GeneralRe: Sending SMS Pin
Dave Kreskowiak20-Feb-12 8:42
mveDave Kreskowiak20-Feb-12 8:42 
GeneralRe: Sending SMS Pin
Luc Pattyn20-Feb-12 8:43
sitebuilderLuc Pattyn20-Feb-12 8:43 
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 

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.