By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,779 Members | 1,500 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,779 IT Pros & Developers. It's quick & easy.

UI-less user control

P: n/a
Hi
I want to create a ui-less user control which appears in the designers tray
area (like timer-control) using VS2005.

I figured out how to bulid user-controls with ui, but dont know the best
practice for buliding ui-less controlls.

Somebody con help ?

Thanks
Michael
May 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Michael,

In order to do this, you want to create a class that implements the
IComponent class in the System.ComponentModel namespace. The Component
class implements this, which you can derive from.

You might also want to check out the MSDN topic on the subject, titled
"Component Authoring", located at (watch for line wrap):

http://msdn2.microsoft.com/en-us/library/5dya64wy.aspx

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Michael Debus" <md****@orcasoft.de> wrote in message
news:e3*************@news.t-online.com...
Hi
I want to create a ui-less user control which appears in the designers
tray area (like timer-control) using VS2005.

I figured out how to bulid user-controls with ui, but dont know the best
practice for buliding ui-less controlls.

Somebody con help ?

Thanks
Michael

May 10 '06 #2

P: n/a
Derive from Component instead of from UserControl

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Michael Debus" <md****@orcasoft.de> wrote in message
news:e3*************@news.t-online.com...
Hi
I want to create a ui-less user control which appears in the designers
tray area (like timer-control) using VS2005.

I figured out how to bulid user-controls with ui, but dont know the best
practice for buliding ui-less controlls.

Somebody con help ?

Thanks
Michael

May 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.