Custom Control

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

Someone was kind enough to send me a control that he
developed that does precisely what I need it to do.

However - the code was originally written in VB.NET for
windows apps. I'm developing for the Compact Framework
(CF). When I attempt to add the control under CF - the
control is grayed out. However under a windows
application I can use it fine.

Obviously there is some sort of issue with the type of
applicaiton I'm using. But I've reviewed the code and it
does just inherit from textbox. What should I look for to
determine why this control is grayed out for me under CF?
Where should I look for it..

Thank you.
 
First, under the CF it takes a bit of work to get designer support, and it
can't be done in VB, so that's why it's showing up as grey. Second, did you
recompile it under the CF? If not, then you'll have to to be sure it's CF
compliant. Once it's recompiled you can add it and use it through code.

-Chris
 
I apologize - I'm very new to custom controls.
While I understand your logic - is saying to recompile
under CF - I'm not sure how.

Can you suggest the steps that I should take to accomplish
this.

thank you.
 
Sure. FIrst you must have the source for the control.
If you have that, then create a new Smart Device program - specifically a
Class Library.
Next add in the code files from the original control.
Build.
 
Back
Top