I have a problem with ListView in my application for .NET Compact Framework.
Try to follow this:
Open a new Smart Device Project (The language is not important. Choose what you prefer, VB or C#)
Drop into the form the ListView (listView1) control and go to its properties.
In Columns property add 2 columns and empty the Text property of each column.
Drop into the form the Button control (Button1) and double-click it to go to its Click event.
Write this code:
Wisual Basic .NET
Build and run the application. Click on the Button. It throws an exception (Exception).
In .NET Framework this code works pretty well without any exception. I'm wondering is it a bug in .NET Compact Framework ListView realization
P.S.: I work with Visual Studio .NET 2005 Professional Edition.
Smart Device Development5