mc73,
thank you for replying. The listview was in fact created with the designer.
If I comment-out both lines of code, the project won't compile anymore:
Compiling code. Error
Error parsing program.
Error description: Undeclared variable 'formload_listview' is used before it was assigned any value.
If I comment-out only the initializing line, the program starts but then throws an exception that says that the listview had not been initialized properly.
Strangely, I cannot put these lines into Activity_Create; then the compiler complains about code in a button click event handler that refers to the listview (makes it visible), so I have to have the lines in the "Globals" section of the program. Do you know why this is so?
Thank you.
Regards,
Edit: the problem is now solved. You got me thinking about the designer, and now I am adding the listview via code. Success. Thanks!