Click here to Skip to main content
12,700,957 members (29,743 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
How to create a windowless user control in C# ?
Posted 31-Dec-12 17:47pm
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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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!


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100