Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to create a windowless user control in C# ?
Posted
Comments
Sergey Alexandrovich Kryukov 31-Dec-12 23:33pm    
1) What do your mean by user control and control? It depends on the library you use: WPF, Forms, ASP.NET, etc.
2) What do you mean by windowless user control, exactly? In ASP.NET, all controls are "windowless"; in WPF, too; in Forms, all controls are windows in the sense of raw windows API.
—SA

1 solution

Please see my comment to the question. It should explain why the question makes no sense. Or it makes some sense for the library I don't know, but then this is not a part of .NET FCL.

I can only speculate that you meant something like System.ComponentModel.Component. Components are somewhat similar to controls, and some are not related to Windows API Windows and their handlers, such as Timer. You can create such components as the classes derived from Component, but such components has nothing to do with controls, especially with user controls.

And by the way, my own opinion is that making such non-control classes the components which can be used with the designer was plain stupid. I can discuss this matter if someone will explain me how being a component helps to work with a timer of dialog, but so far no one tried. At the same time, I can explain why it's bad. I suspect, the only reason for that was marketing. :-)

Happy New Year!

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900