المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Custom Window Control



C# Programming
11-19-2009, 05:01 AM
Hi All,

I want to design a custom window control which can be derived from textbox and to which i can add another control like month calendar or keyboard panel. I have tried user control for this but then i can't derive this from textbox and if i design a custom control that derives from textbox class then how i can add keyboard panel/ month calendar to it?

If i have to design a web control instead of window control then i can add controls to inherited textbox control via rendering the required html. but how this task can be done in window control?

The idea in my mind is design it like user control and then expose the required properties/ event through the custom control. Is it a right solution? or is there a better solution for this problem?