-
Mar 15th, 2015, 01:28 PM
#1
Thread Starter
Lively Member
Last edited by chipp; Mar 15th, 2015 at 01:33 PM.
-
Mar 15th, 2015, 02:19 PM
#2
Re: ListView error while adding new item
The error message tells you that lvProductSummary.Items(1) doesn't exist
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Mar 15th, 2015, 02:33 PM
#3
Thread Starter
Lively Member
Re: ListView error while adding new item
Originally Posted by .paul.
The error message tells you that lvProductSummary.Items(1) doesn't exist
that's why i said it looks like that my 2nd initialization doesn't executed, bcoz the code:
lvProductSummary.Items.Add ("No. " & i)
should be executed every time the form loads, i.e. if i run it twice, it should add another row (2nd row) in the listview.
am i right?
-
Mar 15th, 2015, 02:50 PM
#4
Re: ListView error while adding new item
When you close Form2, it is disposed of. The next call to Form2.Show spawns another, different default instance of Form2, with an empty ListView. You add a single Item to it, but then try to add a sub-item to a second, non existent Item.
-
Mar 16th, 2015, 08:09 AM
#5
Thread Starter
Lively Member
Re: ListView error while adding new item
thank you giving me revelation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|