ControlsExDesktop 1.7

davidkclam

New Member
Licensed User
Longtime User
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?)

Pls suggest the solution.
 

agraham

Expert
Licensed User
Longtime User
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. :(
 
D

Deleted member 103

Guest
Hi davidkclam,

have you loaded both Library(ControlsExDevice, ControlsExDesktop)?


Edit: I was too slow:(

Ciao,
Filippo
 
Last edited by a moderator:

specci48

Well-Known Member
Licensed User
Longtime User
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.


specci48



O.K., only third place... ;-)
 
Last edited:

agraham

Expert
Licensed User
Longtime User
have you loaded both Library(ControlsExDevice, ControlsExDesktop)?
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.
 
Last edited:

specci48

Well-Known Member
Licensed User
Longtime User
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.
:sign0156:

Thats why I added my statement:
Remember that some libraries and functions only work for one platform.


specci48
 
Top