开发者

Windows Form Control

I would like to create my own control for a Windows application using Visual Studio.NET 2010.

The control will look like a text box but will have 4 additional properties out of which 3 will take integer type values and one of type Enum. Please note that none of these properties will affect the appea开发者_如何学Pythonrance of the the control. I would like to use the same User Interface as it is for a text box.

Can you help me how to start about this?

Thanks in advance Nishant


Create a class that inherits TextBox and add whatever properties you like.


Create a user control class which inherits from System.Windows.Forms.UserControl. You can see an example here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜