문제

How can I Fill part of background color in Textbox C# Winforms.
Like this (this example create in Photoshop):

enter image description here

Can anyone help me...

도움이 되었습니까?

해결책 2

You can increase and set color left border width in

Edit UI Elements > BorderPrimitive > Box

but be carefull that

set BoxStyle to FourBorders

다른 팁

You should handle the Paint event, then perform your custom drawing in the event handler.

You could also use panels. Paint the background of the panels the color of your liking. Place them on top of each other. Or you could use a picture as background.

Crate a custom control, use group box with border, set its background, place a text box in it, set its border to none. You can create same as you wish.

In the Properties of the textbox you can change the backcolor under the following setting. http://prntscr.com/3hjyhl

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top