那不是用户控件(User Control),那是自定义控件(Custom Control)。
你可以参考:
Writing your Custom Control: step by step
http://www.codeproject.com/cs/miscctrl/cutebutton.asp
你可以参考:
Writing your Custom Control: step by step
http://www.codeproject.com/cs/miscctrl/cutebutton.asp
如果是WinForm,参考上面的地址。
如果是WebForm,参考:
创作自定义控件
http://chs.gotdotnet.com/quickstart/aspplus/default.aspx
在左边选择:“创作自定义控件”
在右边选择你的语言:C#或者VB