Designing a Custom Control

  • Thread starter Thread starter msncf.news.c45207
  • Start date Start date
M

msncf.news.c45207

Is there any way I can use Visual Studio.NET 2003 to design a custom
control for the .NET CF? I would like to create a derived TextBox that
displays a SIP when it recieves focus. I tried to do this tonight, but
there is not Smart Device Windows Control Library template.

If I cannot design the control, I know I can write it without the
designer. However, I do not know how to make this control available in the
designer when I am making forms. I have looked at a number of resources
regarding this, including the chapter in _.NET Compact Framework_ by Andy
Wigley and Stephen Wheelwrite. I found this chapter to be very lacking.
Are there any other resources?
 
You create a control class using the basic class library template. And you
add design-time support with a special attribute. Note that in the current
release of the CF, design-time support can only be done in C#. See the
article at the link below.
http://www.intelliprog.com/articles/index.html

--
Tim Wilson
..Net Compact Framework MVP

Is there any way I can use Visual Studio.NET 2003 to design a custom
control for the .NET CF? I would like to create a derived TextBox that
displays a SIP when it recieves focus. I tried to do this tonight, but
there is not Smart Device Windows Control Library template.

If I cannot design the control, I know I can write it without the
designer. However, I do not know how to make this control available in the
designer when I am making forms. I have looked at a number of resources
regarding this, including the chapter in _.NET Compact Framework_ by Andy
Wigley and Stephen Wheelwrite. I found this chapter to be very lacking.
Are there any other resources?
 
You create a control class using the basic class library template.
And you add design-time support with a special attribute. Note that
in the current release of the CF, design-time support can only be
done in C#. See the article at the link below.
http://www.intelliprog.com/articles/index.html

Thanks! That link is a lot better than what else I have read.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top