I have fully understand what a shared varible is...
This is the reason why i want to declare a listview as shared.
In my UI Class I wrote a shared method SetRoomEvents(). I declared it shared because the instance of the UI class that contains listview has been created and has been loaded already. One of the button of this UI class show's and display another UI Class Instance. The moment that this new UI is closed and disposed, by clicking some button, I will call the shared procedure of UI class intance that contains the listview and new listviewitems and subitems will be added in the listview. I cannot used the listview for some operations eg(adding new listviewitems) if the listview itself is not declared shared.
if a procedure is not declared shared , that would meant that i need to explicitly create a new instace of UI class that contains the ListView......
Is there something wrong with the way i achieve the things that i want jmcilhinney? I need your Idea?
There was actualy another way that i tried and it worked but i feel that it adds more overhead to myapplication. During the activation of the UI class instance that contains the listView. I requery the records and then clear the listView and add all the records again.