Click here to Skip to main content
Rate this: bad
good
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
Comments
Sergey Alexandrovich Kryukov at 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

Rate this: bad
good
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. Smile | :)
 
Happy New Year!
 
—SA
  Permalink  

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

  Print Answers RSS
0 DamithSL 405
1 OriginalGriff 245
2 Sergey Alexandrovich Kryukov 207
3 Peter Leow 185
4 Afzaal Ahmad Zeeshan 154
0 OriginalGriff 7,460
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 4,954
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
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