Custum Control basic question

  • Thread starter Thread starter baramuse
  • Start date Start date
B

baramuse

Hi,
after some unsucessfull researchs I'm trying to understand what I'm
doing wrong...
I'm targeting the 1.0 SP3 .net compact framework.
I'm trying to create an autoresize Label (I know, sounds common :p).
My problem is at desing time : instead of displaying my label text, It
displays the namespace.classname (even with the .Text property valued),
with a border around the control....
So I've tried the simplest user control, woth no custom code etc, and
still, it shows the classname....

Somebody must have a answer I gess I'm not the only one confronted to
this :D

Thx in advance!
 
Hi, in CF1 you have to build 2 assemblies for your custom control. One
for design time and the other for runtime. If I remember right, you
have to define custom attributes (for proper designtime support for
control's properties) and handle painting of the control a little
different in the design-time assembly. Try to search the msdn for some
articles - for example this could be useful for you:
http://msdn2.microsoft.com/en-us/library/aa127153.aspx

(e-mail address removed) napsal:
 
okay, I was afraid of that answer :)
But I'm running out of time so design time will wait!

Thanks again for your quick answer !
 
Back
Top