User Profile
Collapse
-
Exactly what i was looking for. Thanks dude.... -
I tried adding the two arrays to the 3rd empty array like this:
But my output is System.Int32[]Code:Array.Copy(intY, intZ, 12) Array.Copy(intX, intZ, 14) Array.Sort(intZ) txtDisplay.Text = Convert.ToString(intZ)
Any Ideas?Leave a comment:
-
Merging Arrays
Does anyone have any idea how to merge two integer arrays into one sorted integer array without using any array methods? I am using VB.Net 7.1. Thanks. -
THAT WAS IT!!!!!!! You can add subItems without declaring a variable for the ListViewItems. Here is the solution:
...Code:Private Sub btnMultiply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMultiply.Click Dim intMultiplicand, intMultiplier, intProduct As Integer Const strX = "X" Const strEquals = "=" Dim objForm1 As New Form1Leave a comment:
-
You have been a great help. At least I am getting new results now. Thanks.Leave a comment:
-
Now I am getting 144 Items, but it is not displaying the subitems. Here is what I have changed.
...Code:Dim intMultiplicand, intMultiplier, intProduct As Integer Dim lviTable As New ListViewItem Const strX = "X" Const strEquals = "=" Dim objForm1 As New Form1 intMultiplier = 1 For intMultiplicand = 1 To 12Leave a comment:
-
I was thinking the same thing, but I got this error when I tried that.
An unhandled exception of type 'System.Argumen tException' occurred in system.windows. forms.dll
Additional information: Cannot add or insert the item '' in more than one place. You must first remove it from its current location or clone it.
What does that mean?Leave a comment:
-
BTW,
The code is supposed to produce the multiplication table throught the 12's in the listview. It should look like this...
1 X 1 = 1
1 X 2 = 2
1 X 3 = 3
There should be 144 Items when it is finished, and it should all populate at the touch of one button....Leave a comment:
-
Good point. The loop is not adding any new Items. The assignment requires the subitems, but you are right. I need something that will add Items in the loop. Thanks. This gives me something to work with now. I have been staring at this code all weekend. You guys are great!...Leave a comment:
-
Listview: add new row
I am writing code to display in a listview. I have used a For/Next loop that should add a new line in the listview each time it loops. All i get now is one line when i execute the code. I tested the loop by sending the output to a message box and it showed a message box for every loop. So the loop works, but it is not displaying it in the listview correctly. I think I am missing something that would make the loop process go to the next row in the...
No activity results to display
Show More
Leave a comment: