c# textbox 去掉一边边框

我要做个东东 要去掉textbox里的一边的边框 也不是说要去掉 就是要肉眼看不出来啦 要怎么做
我的是windows 窗体 可以用CSS么

<asp:TextBox ... style="border-bottom-style:none; ”></asp:TextBox>
...是你现在的内容。再加上style="border-bottom-style:none;“,这样下边框就没有了
style="border-left-style:none;“左边框没有
style="border-right-style:none;“右边框没有
style="border-top-style:none;“上边框边框没有

这其实是用css实现的
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-07-24
请设置TextBox的BorderStyle 改成你需要的样式
第2个回答  2010-07-24
自己写一个控件吧。你想去掉他的有点麻烦吧。
第3个回答  2010-07-24
重新绘制控件。网上有相关实例。
相似回答