开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜