Windows窗体中的自定义形状的文本框? [英] Custom shaped text box in windows forms?

查看:38
本文介绍了Windows窗体中的自定义形状的文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想插入一个自定义形状的 TextBox,如椭圆形或三角形 TextBoxLabel 或任何 Control> 以获胜形式.

I want to insert a custom shaped TextBox like an oval or a triangle TextBox or Label or any Control in win forms.

我尝试了 Telerik 文本框控件和 c1 控件,但找不到任何形状的控件.

I tried telerik textbox controls and c1 controls but couldn't find any shaped control.

顺便说一下,我可以像在 ms power point 中一样在 windows 窗体中添加一个矩形或一条线或任何其他形状,然后在其中键入文本并对其进行格式化等等,更改其大小并用作具有win控件的相同属性?

By the way can I add a rectangle or a line or any other shape in windows forms just like in ms power point and type text into it and format it and so on, change its size and use as a control which has the same properties of a win control?

我尝试了上述方法,但无法获得.

I tried the above but could't get it.

谢谢!

推荐答案

这是一个 文章示例,讨论了可用于塑造控件形状的区域属性.

Here's an article with example that discusses the region property that can be used to shape a control.

这篇关于Windows窗体中的自定义形状的文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆