简体   繁体   中英

Make a border of disabled NumericUpDown same to TextBox

在此处输入图片说明

Is it possible to achieve not by subclassing a NumericUpDown?

Sadly, this is not possible. I tried to retrieve a real Vista / 7 textbox border for a custom control, but all methods I tried didn't work.

The only solution is a dummy textbox around a borderless numeric up down (I hope it's possible to hide the border of it).

Also see my question: Draw TextBox border as in Vista / 7

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