custom list view control

  • Thread starter Thread starter coder
  • Start date Start date
C

coder

Hi, we are developing an app for WM6 pro with CF 3.5, we need to create some
custom controls for our UI, one of which will be a custom list view control.

We believe there are 2 ways
1) Inherit from system.windows.forms.Control and implement one
2) Create a native control in C++ and use a manager wrapper to access it.

Is the native method more efficient or does it not make much difference.
Any links how to do would be useful




__________ Information from ESET Smart Security, version of virus signature database 4348 (20090819) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
Hi,

coder said:
Is the native method more efficient or does it not make much difference.
Any links how to do would be useful

As with anything the true answer is "it depends".

You have not really provided enough detail about your particular scenario to
get a more precise answer.

Having said that for general GUI type custom controls I generally so no
reason (performance penality etc) for not writing these in .NET CF. I have
written a number of custom controls where i've written a .NET CF version,
and then ported to native code or visa versa and not noticed anything too
significant (or without available solutions).

Obviously writing a control in .NET CF limits its usage to .NET based
applications, but if you're controls are only intended for internal use
within your application, this will most likely not be a concern.

Hope this helps,
Christopher Fairbairn
 
Hi,




As with anything the true answer is "it depends".

You have not really provided enough detail about your particular scenarioto
get a more precise answer.

Having said that for general GUI type custom controls I generally so no
reason (performance penality etc) for not writing these in .NET CF.  I have
written a number of custom controls where i've written a .NET CF version,
and then ported to native code or visa versa and not noticed anything too
significant (or without available solutions).

Obviously writing a control in .NET CF limits its usage to .NET based
applications, but if you're controls are only intended for internal use
within your application, this will most likely not be a concern.

Hope this helps,
Christopher Fairbairn


Hi Christopher Fairbairn,
You had mentioned that you had ported custom control from .Net CF to
native code and visa versa. May I know how this can be done? I had
some custom control written in native code and is compiled into .lib
file. Is that possible to use in .Net CF app?

Thank you.

regards,
Sean Shoi
 
Back
Top