简体   繁体   中英

TextBox Label Control

I am not worried about whether this is in Winforms or WPF.

Is there ANY way at all that I could develop my own user control like the one found in Microsoft Paint, below:

替代文字

If you can't see the pic above, it's here: http://img232.imageshack.us/i/txtboxlblctrl.png/ Is there anyway at all I can do something like this in C#?

Thank you

Sure you can. By developing your own Usercontrol you can do nearly anything. I think the easiest way would be to use a WPF TextBox and alternate it with a template.

This [ http://img199.imageshack.us/i/textboxu.png/] is what you get by simply using [ http://img163.imageshack.us/i/stipe.png/] as BorderBrush

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM