开发者

Is it possible to design a control of my own in c#

开发者 https://www.devze.com 2023-01-12 16:42 出处:网络
I would like to de开发者_StackOverflow中文版sign a richTextBox control of my own with rounded rectangular edges or liek some other is it possible to customize thisYes it is.

I would like to de开发者_StackOverflow中文版sign a richTextBox control of my own with rounded rectangular edges or liek some other is it possible to customize this


Yes it is.

Add a new UserControl and then inherit from the existing RichTextBox. You will have to override the onPaint method to create a richtextbox with rounded corners.

This article here may help you. It is based on a TextBox control (in VB) rather than a RichTextBox Control.


yes by using the user Control you can also inherits an existing control and changing it

0

精彩评论

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