After I add object listview as lv1.
When I compile the program in Device(Auto Scale) EXE mode, it display the following error.
Error compiling program.
Error message: error CS0246: The type or namespace name 'ControlsExDesktop' could not be found (are you missing a using directive or an assembly reference?)
The compile error is probably because you have not added ControlsExDesktop as a component for the device. However, surprise surprise, ControlsExDesktop does not work on the device as it implements controls that are only available on the desktop. For a program that will run on both desktop and device or only on a device you should use ControlsExDevice as the device component and ControlsExDeviceDummy as the desktop component. Despite the unfortunate name ControlsExDeviceDummy is just as capable on the desktop as ControlsExDevice is on a device. I wish I had named it more appropriately to begin with.
As the name already assigns: The ControlsExDesktop library works only for the desktop, so you cannot compile for the device.
There is another library called ControlsExDevice which may provide your wanted functionality for the device.
Remember that some libraries and functions only work for one platform.
The ListView is available on both platforms so simply add the right component for the device.
I am afraid that mixing the libraries is not a good idea Filippo and Specci. It might work if you only use some of the controls but using others will cause compile time, and maybe run time, errors. Also the namespaces of the libraries are different so it might not compile at all - I have never tried so I am not really sure what will happen.
I am afraid that mixing the libraries is not a good idea Filippo and Specci. It might work if you only use some of the controls but using others will cause compile time, and maybe run time, errors. Also the namespaces of the libraries are different so it might not compile at all - I have never tried so I am not really sure what will happen.