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

مشاهدة النسخة كاملة : custom control textbox with a label tied



C# Programming
06-01-2009, 06:23 AM
I've searched for some component examples but I couldn't find what I want, it seems to be simple but i'm getting few issues to develop it.

What I would like to have is a custom component inherited from a textbox and also add a Label at runtime. so, everytime I drag & drop the textbox from the toolbox to the form it comes with a label, if i move the textboxcontrol or the label, they all move together.

Is it possible to do it instead of creating a usercontrol?

Thanks in advance!

http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif