|
-
Feb 23rd, 2008, 12:04 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2008] Changing ListView items on one form from another form
Ok, basically, what I tried to do is:
I have two forms, the app's main form and a second form.
When a particular event happens on the second form, I want to change an item in a ListView on the main form.
Since events cannot be raised from another class, I created a Public Sub in the main form with all the necessary code to change the ListViewItem in the ListView. I then call the sub from a background worker thread of the second form, with all the neccessary Invokes and stuff.
Now, to the problem:
The sub accesses the ListView in its own class, but refuses to view any of its items or the Items.Count property, and is therefore useless.
Why is this happening and how do I solve it? Also, if there is another, better way of doing this, please tell me. Thx
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
|