渐变文本框控件C#

编程入门 行业动态 更新时间:2024-10-26 04:32:09
本文介绍了渐变文本框控件C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有很多关于创建渐变按钮的文章.但是,我知道某些软件具有特殊的文本框控件,并且非常好用(例如:诺基亚PC套件,或类似4.bp.blogspot/_DsTN2TagWBQ/THAffzWqbRI/AAAAAAAAAGo/b1_XaGW16uc/s320/myfinal.gif.任何人都知道如何绘制这样的文本框吗?我是初学者,需要对此进行研究. 感谢所有

There was many very articles talking about creating a gradient button. However, i know some softwares have the special textbox control and it''s very nice (like: Nokia PC Suite, or like this 4.bp.blogspot/_DsTN2TagWBQ/THAffzWqbRI/AAAAAAAAAGo/b1_XaGW16uc/s320/myfinal.gif. Any body know how drawing textbox like this? I''m a beginner and i need study about this. Thanks all

推荐答案

在GDI +中我能找到的最接近的东西是:所有者绘制Windows.Forms文本框.但是,我认为与WPF互操作将是最好的选择. The closest thing I could find for doing this in GDI+ is this: Owner-drawing a Windows.Forms TextBox. However, I think interop with WPF would be your best bet.

不确定是否使用WPF,ASP.NET或Windows窗体,但可以在WPF中轻松地做到这一点: www.vbdotnetheaven/UploadFile/dbeniwal321/WPFTextBox01052009013240AM/WPFTextBox.aspx . 您还可以使用Interop来获取WPF文本框,使其出现在Windows窗体应用程序中:www.developerfusion/community/blog-entry/8393574/wpfwinforms-interop-a-highlighted-textbox/. Not sure if you are using WPF, ASP.NET, or Windows Forms, but you can do this fairly easily in WPF: www.vbdotnetheaven/UploadFile/dbeniwal321/WPFTextBox01052009013240AM/WPFTextBox.aspx. You can also use Interop to get a WPF textbox to appear in a Windows Forms application: www.developerfusion/community/blog-entry/8393574/wpfwinforms-interop-a-highlighted-textbox/.

我刚发现另一个潜在的解决方案.也许您可以使用 AlphaBlendTextBox-用于.NET的透明/半透明文本框,并将其覆盖在渐变图像. 还有一个: Alpha混合(透明功能)TextBox和RichTextBox . 更新:我注意到此消息提供了一种非常简短的方法一个透明的RichTextBox. I just found another potential solution. Perhaps you could use the AlphaBlendTextBox - A transparent/translucent textbox for .NET and overlay it on top of a gradient image. There is also this: Alpha Blended (Transparent Capable) TextBox and RichTextBox. UPDATE: I noticed this message provides a very short way of making a transparent RichTextBox.

更多推荐

渐变文本框控件C#

本文发布于:2023-11-11 23:47:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579884.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   文本框

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!