开发者

How to set borders of a custom textbox for PAssword type?

开发者 https://www.devze.com 2023-03-21 13:13 出处:网络
I have 2 text boxes with USername & PAssword. I got a class RoundedCornerTextbox from http://www.codeproject.com/KB/edit/RoundedCornerTextbox.aspx. It works well with username textbox. But with PA

I have 2 text boxes with USername & PAssword. I got a class RoundedCornerTextbox from http://www.codeproject.com/KB/edit/RoundedCornerTextbox.aspx. It works well with username textbox. But with PAssword textbox it shows actual password instead of "*" - the password char of Textbox.

How can I h开发者_运维技巧andle this situation in the RoundedCornerTextbox class ? If I just set the text to "**" (* as many as size of text) in DrawString(), then when I retrieve pswdTxt.Text, the data received will be "*" only and not actual text.


Ok, if you want rounded corner text box, you can use free Krypton toolkit textbox component. It supports textbox border rounding. What you need is to set property:

int howMuchRoundCorners = 5;
kryptonTextBox.StateCommon.Border.Rounding = howMuchRoundCorners;

How to set borders of a custom textbox for PAssword type?

0

精彩评论

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

关注公众号