Re: Custum Control basic question

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

baramuse@xxxxxxxxx napsal:
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!

.



Relevant Pages

  • Re: usercontrol with readonly property that can be set at design time
    ... Ultimately I'm trying to find out which label was clicked and show the ... I don't want to do any sort of case statement based on the control ... because as the name suggests the values for such a property are design time ... are use at design time only. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Programmatically resizing a web custom control at design time
    ... >I have written a simple web custom control. ... > The custom we control also has its design time class. ... > also display in the selected dimensions. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Custom ContentPlaceHolder
    ... custom ContentPlaceHolder the same way we would use any other custom ... classes (Control vs. WebControl) ... "A ContentPlaceHolder control defines a relative region for content ... still come down to trying to justify simply bad design. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Solved: only one instance of my control per Page
    ... > (custom) control can be placed on a Web form (either at design or run ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: IHttpHandler and VS design-time
    ... >> I've developed a custom handler for my custom control that stores and ... >> all the JS and GIF files to the control user at run time. ... >> child controls to this composite control) at design time in VS's ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)